@Test
@StroomExpectedException(exception = IOException.class)
public void testSimpleOneFileWithDataError() throws IOException {

    init();
    final StroomZipRepository proxyRepository = proxyRepositoryManager.getActiveRepository();
    final StroomZipOutputStream stroomZipOutputStream = proxyRepository.getStroomZipOutputStream();
    StroomZipOutputStreamUtil.addSimpleEntry(stroomZipOutputStream, StroomZipFile.SINGLE_META_ENTRY,
            "Feed:TEST\nGUID:Z1\n".getBytes(StreamUtil.DEFAULT_CHARSET));
    StroomZipOutputStreamUtil.addSimpleEntry(stroomZipOutputStream, StroomZipFile.SINGLE_DATA_ENTRY,
            "Test Data".getBytes(StreamUtil.DEFAULT_CHARSET));
    stroomZipOutputStream.close();
    mockRequestHandler.setGenerateExceptionOnData(true);
    proxyRepositoryReader.doRunWork();
    Assert.assertEquals(1, mockRequestHandler.getHandleHeaderCount());
    Assert.assertEquals(0, mockRequestHandler.getHandleFooterCount());
    Assert.assertEquals(1, mockRequestHandler.getHandleEntryCount());
    Assert.assertEquals(1, mockRequestHandler.getHandleErrorCount());
    proxyRepository.clean();
    Assert.assertTrue("Expecting file to still be there", isZipFile(proxyRepository, 1));
}