JABConnection connection = factory.getConnection("connection");
JABBuffer toSend = new JABBuffer();
toSend.setArrayValue("X_OCTET", "test_tpcall_x_octet".getBytes());
Transaction transaction = connection.beginTransaction(10000);
JABResponse call = connection.call(
RunServer.getServiceNametpcallXOctet(), toSend, transaction,
"X_OCTET", null);
transaction.commit();
byte[] expected = new byte[60];
System.arraycopy("tpcall_x_octet".getBytes(), 0, expected, 0, 14);
byte[] received = call.getByteArray("X_OCTET");
assertTrue(Arrays.equals(expected, received));
factory.closeConnection("connection");
}