@Test
  public void testReadShort() throws IOException {
    LittleEndianDataInputStream data =
        new LittleEndianDataInputStream(
            new ByteArrayInputStream(
                new byte[] {
                  (byte) 0x00, (byte) 0x00,
                  (byte) 0x01, (byte) 0x00,
                  (byte) 0xff, (byte) 0xff,
                  (byte) 0x00, (byte) 0x80,
                  (byte) 0xff, (byte) 0x7f,
                  (byte) 0x00, (byte) 0x01,
                }));

    assertEquals(0, data.readShort());
    assertEquals(1, data.readShort());
    assertEquals(-1, data.readShort());
    assertEquals(Short.MIN_VALUE, data.readShort());
    assertEquals(Short.MAX_VALUE, data.readShort());
    assertEquals(256, data.readShort());
  }