public void _testWriteDoubles() throws IOException {
final double[] src = new double[] { 1, 2, 3 };
final double[] dest = new double[3];
final BasicImageOutputStreamImpl out = new BasicImageOutputStreamImpl(
8 * dest.length);
final ImageInputStream in = new BasicImageInputStreamImpl(out.buff);
out.writeDoubles(src, 0, 3);
in.readFully(dest, 0, 3);
assertTrue(Arrays.equals(src, dest));
out.reset();
in.reset();
out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
in.setByteOrder(ByteOrder.LITTLE_ENDIAN);
out.writeDoubles(src, 0, 3);
in.readFully(dest, 0, 3);
assertTrue(Arrays.equals(src, dest));
}