@Test
    void testCrc() {

        final PngCrc pngCrc = new PngCrc();
        final byte[] byteArray = new byte[4];

        assertEquals(558161692, pngCrc.crc(byteArray, (byte) 32));
        assertEquals(3736805603L, pngCrc.startPartialCrc(byteArray, 0));

    }
Tests for class {@link PngCrc}.

@date 13.07.2017
@see PngCrc
src/test/java/org/apache/commons/imaging/formats/png/PngCrcTest.java