@Test
    void testNextBitThrowsImageReadExceptionTwo() {
        final int[] byteArray = {};
        final JpegInputStream jpegInputStream = new JpegInputStream(byteArray);

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

    }
Tests for class {@link JpegInputStream}.

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