@Test
public void testFindNewNameThatDoesNotExist() throws Exception {

    File file = folder.newFile("chuck.norris");
    assertEquals("chuck(1).norris", IOUtils.findNewNameThatDoesNotExist(file).getName());
    folder.newFile("chuck(1).norris");
    assertEquals("chuck(2).norris", IOUtils.findNewNameThatDoesNotExist(file).getName());
}