* Test of read method, of class SerialConnectionProvider.
*/
@Test
public void testRead() {
try {
SerialConnectionProvider usb;
System.out.println("Test started ");
usb = new SerialConnectionProvider();
usb.setPortName("/dev/ttyUSB11");
usb.setPortBaudrate(9600);
// usb.setPortDatabits(SerialPort.DATABITS_8);
// usb.setPortParity(SerialPort.PARITY_NONE);
// usb.setPortStopbits(SerialPort.STOPBITS_1);
System.out.println("\nTesting write to serial");
usb.connect();
System.out.println("stx: " + STX);
System.out.println("etx: " + ETX);
System.out.println("pos eso");
String msg = STX + "**PON" + ETX;
System.out.println("pos eso 222");
System.out.println("msg: " + msg);
String output = usb.send(msg);
System.out.println("Salida del puerto: " + output);
usb.disconnect();
//assertEquals(1, 1);
// sudo socat pty,link=/dev/ttyUSB10,waitslave,ignoreeof tcp:192.168.1.5:54321 &
// sudo socat tcp-l:54321,reuseaddr,fork file:/dev/ttyUSB0,nonblock,waitlock=/var/run/ttyUSB0.lock
// sudo socat tcp-l:54321,reuseaddr,fork file:/dev/ttyUSB0,nonblock,waitlock=/var/run/ttyUSB0.lock
} catch (Exception ex) {