assertEquals(-42, d.readShort().intValue());
assertEquals(12345, d.readUnsignedInteger().intValue());
assertEquals(-12345, d.readInteger().intValue());
assertEquals(12345, d.readUnsignedLong().longValue());
assertEquals(-12345, d.readLong().longValue());
assertEquals(0.125, d.readFloat().floatValue(), 0e-10);
assertEquals(0.125, d.readDouble().doubleValue(), 0e-10);
}
@Test
public void testStrings() throws IOException