@Test
public void testOutputTxtForAllSplit() {

    ExportSettings exportSettings = createExportSettings(true, true, true, true, false, false, true, false, true);
    List<File> result = exporter.exportReport(exportSettings, tripToExport.getParticipant(), tripToExport,
            resourceResolver,
            new ActivityResolver() {

                @Override
                public Object getActivity() {
                    return null;
                }
            },
            amountFactory);

    Throwable exceptionCaught = null;
    try {
        Assert.assertEquals(3, result.size());
        Assert.assertTrue(patternTxtIndividual.matcher(result.get(0).getName()).matches());
        Assert.assertTrue(patternTxtIndividual.matcher(result.get(1).getName()).matches());
        Assert.assertTrue(patternTxtIndividual.matcher(result.get(2).getName()).matches());

        for (int i = 0; i < result.size(); i++) {
            String name;
            if (i == 0) {
                name = factory.chris.getName();
            }
            else if (i == 1) {
                name = factory.niko.getName();
            }
            else {
                name = factory.wolfram.getName();
            }
            Assert.assertTrue(nameContains(result.get(i), name));
        }
    }
    catch (Exception e) {
        exceptionCaught = e;
    }
    finally {
        deleteCreatedFiles(result);
    }
    if (exceptionCaught != null) {
        throw new RuntimeException(exceptionCaught);
    }
}