public void testRead() throws Exception {
LittleEndianInputStream lis = new LittleEndianInputStream(new BufferedInputStream(new FileInputStream("les_test.bin")));
assertEquals("Binary test file", lis.readString());
assertEquals(Float.MAX_VALUE, lis.readFloat());
assertEquals(Byte.MAX_VALUE, lis.readByte());
assertEquals(Short.MAX_VALUE, lis.readShort());
assertEquals(Integer.MAX_VALUE, lis.readInt());
assertEquals(Long.MAX_VALUE, lis.readLong());
assertEquals(Double.MAX_VALUE, lis.readDouble());
lis.close();
}