@Test
void invalidFile() throws Exception {

    insertAccountBalanceFiles(balanceFile2);
    fileCopier.copy();
    File file1 = fileCopier.getTo().resolve(balanceFile1.getFilename()).toFile();
    FileUtils.writeStringToFile(file1, "corrupt", "UTF-8");
    balanceFileParser.parse();
    assertValidFiles(balanceFile1);
    assertParsedFiles();
    assertAccountBalances(balanceFile2); // Latest is processed first, so it succeeds
}