// also tests TupleBinding since TupleMarshalledBinding extends it
public void testTupleMarshalledBinding()
throws IOException {
DataBinding binding =
new TupleMarshalledBinding(format, MarshalledObject.class);
assertSame(format, binding.getDataFormat());
MarshalledObject val = new MarshalledObject("abc", "", "", "");
binding.objectToData(val, buffer);
assertEquals(val.expectedDataLength(), buffer.getDataLength());
Object result = binding.dataToObject(buffer);
assertTrue(result instanceof MarshalledObject);
val = (MarshalledObject) result;
assertEquals("abc", val.getData());
}