}
public void testTupleInputBinding()
throws IOException {
DataBinding binding = new TupleInputBinding(format);
assertSame(format, binding.getDataFormat());
TupleOutput out = new TupleOutput();
out.writeString("abc");
binding.objectToData(new TupleInput(out), buffer);
assertEquals(4, buffer.getDataLength());
Object result = binding.dataToObject(buffer);
assertTrue(result instanceof TupleInput);
TupleInput in = (TupleInput) result;
assertEquals("abc", in.readString());
assertEquals(0, in.available());
}