// it
public void testTupleTupleMarshalledBinding()
throws IOException {
EntityBinding binding =
new TupleTupleMarshalledBinding(keyFormat, format,
MarshalledObject.class);
assertSame(format, binding.getValueFormat());
assertSame(keyFormat, binding.getKeyFormat());
MarshalledObject val = new MarshalledObject("abc", "primary",
"index1", "index2");
binding.objectToValue(val, buffer);
assertEquals(val.expectedDataLength(), buffer.getDataLength());
binding.objectToKey(val, keyBuffer);
assertEquals(val.expectedKeyLength(), keyBuffer.getDataLength());
Object result = binding.dataToObject(keyBuffer, buffer);
assertTrue(result instanceof MarshalledObject);
val = (MarshalledObject) result;
assertEquals("abc", val.getData());
assertEquals("primary", val.getPrimaryKey());
assertEquals("index1", val.getIndexKey1());