tests if the content length set in the stream equals the bytes read from the stream . if any exception is thrown , then the test fails . concode_field_sep String sampleData concode_field_sep void testMarkAndResetAtEnd concode_elem_sep void testSkipExcluded concode_elem_sep void testOverSkipped concode_elem_sep void testSkipIncluded concode_elem_sep void testSkipIncludedFailure concode_elem_sep void testMarkAndResetWithWrongExpectedLength concode_elem_sep void testSkipExcludedFailure concode_elem_sep void testMarkInitiallyAndReset
void function ( ) { InputStream loc0 = new ByteArrayInputStream ( sampleData . getBytes ( ) ) ; LengthCheckInputStream loc1 = new LengthCheckInputStream ( loc0 , sampleData . getBytes ( ) . length , INCLUDE_SKIPPED_BYTES ) ; try { StreamUtils . consumeInputStream ( loc1 ) ; } catch ( Exception loc2 ) { fail ( ) ; } loc1 . close ( ) ; }