@Test
public void testSimpleOneFile() 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));
    Assert.assertEquals(1, proxyRepository.getFileCount());
    stroomZipOutputStream.close();
    Assert.assertTrue(isZipFile(proxyRepository, 1));
    proxyRepositoryReader.doRunWork();
    Assert.assertEquals(1, mockRequestHandler.getHandleHeaderCount());
    Assert.assertEquals(1, mockRequestHandler.getHandleFooterCount());
    Assert.assertEquals(2, mockRequestHandler.getHandleEntryCount());
    Assert.assertEquals(0, mockRequestHandler.getHandleErrorCount());
    Assert.assertEquals(2, mockRequestHandler.getEntryNameList().size());
    final String sendHeader1 = new String(mockRequestHandler.getByteArray("001.meta"), StreamUtil.DEFAULT_CHARSET);
    Assert.assertTrue(sendHeader1.contains("Feed:TEST"));
    Assert.assertTrue(sendHeader1.contains("GUID:Z1"));
    proxyRepository.clean();
    Assert.assertFalse(isZipFile(proxyRepository, 1));
}