}
// 9.1.2
public void test_tpalloc_x_common() throws ConnectionException {
log.info("test_tpalloc_x_common");
X_COMMON dptr = (X_COMMON) connection.tpalloc("X_COMMON", "deposit", 0);
m_allocated = dptr;
// ASSIGN SOME VALUES
dptr.setLong("acct_no", 12345678);
dptr.setShort("amount", (short) 50);
dptr.setShort("balance", (short) 0);
dptr.setByteArray("status", "c".getBytes());
dptr.setShort("status_len", (short) 0);
// CHECK THE ASSIGNATIONS
assertTrue(dptr.getLong("acct_no") == 12345678);
assertTrue(dptr.getShort("amount") == 50);
assertTrue(dptr.getShort("balance") == 0);
assertTrue(Arrays.equals(dptr.getByteArray("status"), "c".getBytes()));
assertTrue(dptr.getShort("status_len") == 0);
}