@Before
public void setUp() throws IOException, MutationsRejectedException {
input = new SettableInputStream();
baos = new ByteArrayOutputStream();
MutationsRejectedException mre = createMock(MutationsRejectedException.class);
writer = createNiceMock(BatchWriter.class);
exceptionWriter = createNiceMock(BatchWriter.class);
exceptionWriter.close();
expectLastCall().andThrow(mre);