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());
assertEquals(-12345, d.readLong().longValue());
assertEquals(0.125, d.readFloat().floatValue(), 0e-10);