@Test
public void testRemainingChunksOrderIsPreserved() throws Exception {

	InputStream inputStream = _createInputStream(
		_PNG_SIGNATURE, _MISC_CHUNK1, _ZTXT_CHUNK, _COMPRESSED_ITXT_CHUNK,
		_MISC_CHUNK2, _ICCP_CHUNK);
	byte[] bytes = new byte
		[_PNG_SIGNATURE.length + _MISC_CHUNK1.length + _MISC_CHUNK2.length];
	inputStream.read(bytes);
	Assert.assertArrayEquals(
		ArrayUtil.append(_PNG_SIGNATURE, _MISC_CHUNK1, _MISC_CHUNK2),
		bytes);
	Assert.assertEquals(-1, inputStream.read());
}