question: private void testFirstNBytes ( byte [ ] byteArray , int n , boolean foundNewScan , int expectedBestScan , int bestScanEndOffset ) { assertEquals ( foundNewScan , mProgressiveJpegParser . parseMoreData ( buildEncodedImage ( new TrivialPooledByteBuffer ( Arrays . copyOf ( byteArray , n ) ) ) ) ) ; assertTrue ( mProgressiveJpegParser . isJpeg ( ) ) ; assertEquals ( expectedBestScan , mProgressiveJpegParser . getBestScanNumber ( ) ) ; assertEquals ( bestScanEndOffset , mProgressiveJpegParser . getBestScanEndOffset ( ) ) ; }
target:  Feeds mProgressiveJpegParser with n initial bytes from byteArray and checks that