Whitebox.setInternalState(reader, "output", this.recordWriter);
StringRecord record = mock(StringRecord.class);
whenNew(StringRecord.class).withNoArguments().thenReturn(record);
reader.invoke();
// verify the correct bytes have been written and read
verify(record, times(3)).set(in.getBytes());
}
}