@Test
public void testMultipleFilesAtCountLimitSameFeed() throws IOException {

    init();
    final StroomZipRepository proxyRepository = proxyRepositoryManager.getActiveRepository();
    for (int a = 0; a < 5; a++) {
        final StroomZipOutputStream stroomZipOutputStream1 = proxyRepository.getStroomZipOutputStream();
        for (int i = 0; i < 10; i++) {
            StroomZipOutputStreamUtil.addSimpleEntry(stroomZipOutputStream1,
                    new StroomZipEntry(null, String.valueOf(i), StroomZipFileType.Meta),
                    "Feed:TEST\nGUID:Z1\n".getBytes(StreamUtil.DEFAULT_CHARSET));
            StroomZipOutputStreamUtil.addSimpleEntry(stroomZipOutputStream1,
                    new StroomZipEntry(null, String.valueOf(i), StroomZipFileType.Data),
                    "Test Data".getBytes(StreamUtil.DEFAULT_CHARSET));
        }
        stroomZipOutputStream1.close();
    }
    proxyRepositoryReader.setMaxAggregation(20);
    proxyRepositoryReader.setMaxStreamSize(null);
    proxyRepositoryReader.doRunWork();
    Assert.assertEquals(3, mockRequestHandler.getHandleHeaderCount());
    Assert.assertEquals(3, mockRequestHandler.getHandleFooterCount());
    proxyRepository.clean();
    Assert.assertFalse(isZipFile(proxyRepository, 1));
    Assert.assertFalse(isZipFile(proxyRepository, 2));
}