public void testPrimitives() throws IOException
{
TestDecoder d = createDecoder(getBytes("primitives"));
assertEquals(true, d.readBoolean());
assertEquals(false, d.readBoolean());
assertEquals(d.readUnsignedByte().intValue(), 42);
assertEquals(42, d.readUnsignedShort().intValue());
assertEquals(-42, d.readShort().intValue());
assertEquals(12345, d.readUnsignedInteger().intValue());
assertEquals(-12345, d.readInteger().intValue());
assertEquals(12345, d.readUnsignedLong().longValue());