@Test
public void getFileWithIncrementedNameShouldReturnFileWithFiveAppendedIfFileUpToFourAppendedExists() throws IOException {

    createTemporaryFile("apples.jpg");
    createTemporaryFile("apples_1.jpg");
    createTemporaryFile("apples_2.jpg");
    createTemporaryFile("apples_3.jpg");
    createTemporaryFile("apples_4.jpg");
    final File file = Tools.getFileWithIncrementedName(new File("apples.jpg"));
    assertEquals("apples_5.jpg", file.getName());
}