### Question:
BytesArrayInputReader extends AbstractFileInputReader { @Override protected FileInputIterator<FileRecord<TypedStruct>> newIterator(final FileContext context, final IteratorManager iteratorManager) { return new BytesArrayInputIterator( context, iteratorManager ); } BytesArrayInputReader();   }### Answer:
@Test public void shouldReaddAllBytes() { FileInputIterator<FileRecord<TypedStruct>> iterator = reader.newIterator(context); Assert.assertTrue(iterator.hasNext()); FileRecord<TypedStruct> record = iterator.next().last(); TypedStruct typed = record.value(); TypedValue typedValue = typed.get(TypedFileRecord.DEFAULT_MESSAGE_FIELD); Assert.assertEquals(Type.BYTES, typedValue.type()); Assert.assertTrue( Arrays.equals(TEST_VALUE.getBytes(), typedValue.getBytes())); Assert.assertFalse(iterator.hasNext()); }