@Test
public void testGetPosition() throws Exception {

  DataInputBuffer inputBuffer = new DataInputBuffer();
  inputBuffer.reset(tests, 0, tests.length);
  
  final int position = 2;
  int n = position;
  while (n-- > 0) {
    inputBuffer.readByte();
  }
  
  assertEquals(inputBuffer.getPosition(), position);
  
  inputBuffer.close();
  
}