@Test
    void testNextBitThrowsImageReadExceptionOne() {
        final int[] byteArray = new int[6];
        byteArray[0] = (byte) -1;
        byteArray[1] = (byte) 74;
        final JpegInputStream jpegInputStream = new JpegInputStream(byteArray);

        assertThrows(ImagingException.class, jpegInputStream::nextBit);

    }
Tests for class {@link JpegInputStream}.

@see JpegInputStream
src/test/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegInputStreamTest.java