@Test
public void testOutputSpendingsAndDebtsForAll() {

    ExportSettings exportSettings = createExportSettings(true, false, true, false, true, true, false, 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(4, result.size());
        Assert.assertTrue(patternCsvAll.matcher(result.get(0).getName()).matches());
        Assert.assertTrue(patternCsvAll.matcher(result.get(1).getName()).matches());
        Assert.assertTrue(patternHtmlAll.matcher(result.get(2).getName()).matches());
        Assert.assertTrue(patternTxtAll.matcher(result.get(3).getName()).matches());
        for (File f : result) {
            Assert.assertTrue(nameContains(f, resourceResolver.resolve(R.string.fileExportrFix_Scope_All)));
        }
        Assert.assertTrue(nameContains(result.get(0),
                resourceResolver.resolve(R.string.fileExportPostfix_Spendings)));
        Assert.assertTrue(nameContains(result.get(1),
                resourceResolver.resolve(R.string.fileExportPostfix_Debts)));
    }
    catch (Exception e) {
        exceptionCaught = e;
    }
    finally {
        deleteCreatedFiles(result);
    }
    if (exceptionCaught != null) {
        throw new RuntimeException(exceptionCaught);
    }
}