BT_NBF test = (BT_NBF) connection.tpalloc("BT_NBF", "test", 0);
assertTrue(test.btaddattribute("employee", buffer));
//log.info(new String(test.serialize()));
obj = test.btgetattribute("employee", 0);
assertTrue("org.jboss.narayana.blacktie.jatmibroker.xatmi.BT_NBF".equals(obj.getClass().getName()));
BT_NBF employee = (BT_NBF)obj;
String name = (String)employee.btgetattribute("name", 0);
assertTrue("zhfeng".equals(name));
Long id = (Long)employee.btgetattribute("id", 0);