@Test
public void testWrite() throws Exception {

  DataOutputBuffer outBuffer = new DataOutputBuffer(1024);
  outBuffer.write(tests);
  
  assertEquals(outBuffer.getLength(), tests.length);
  assertEquals(new String(outBuffer.getData(), 0, outBuffer.getLength()), 
      new String(tests, 0, tests.length));
  
  outBuffer.close();
  
}