public void testWriteLong() throws IOException {
final BasicImageOutputStreamImpl out = new BasicImageOutputStreamImpl(8);
final ImageInputStream in = new BasicImageInputStreamImpl(out.buff);
out.writeLong(Long.MAX_VALUE);
assertEquals(Long.MAX_VALUE, in.readLong());
out.reset();
in.reset();
out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
in.setByteOrder(ByteOrder.LITTLE_ENDIAN);