int sendlen = 3;
X_OCTET sendbuf = (X_OCTET) connection
.tpalloc("X_OCTET", null, sendlen);
sendbuf.setByteArray("24".getBytes());
Response success = connection.tpcall(
RunServer.getServiceNameTestTPReturn2(), sendbuf, 0);
assertTrue(success != null);
assertTrue(success.getRcode() == 24);
sendbuf.setByteArray("77".getBytes());
success = connection.tpcall(RunServer.getServiceNameTestTPReturn2(),
sendbuf, 0);
assertTrue(success != null);
assertTrue(success.getRcode() == 77);
}