public File createFile(String fileName) throws IOException {
        File file = new File(tempFolder(), fileName);
        file.getParentFile().mkdirs();
        file.createNewFile();
        createdFiles.add(file);
        return file;
    }
@Test
    public void shouldCreateFilesInTempDirectory() throws IOException {
        File file = files.createFile("foo");
        File parentFile = file.getParentFile();
        assertThat(parentFile.getName(), is("cruise"));
        assertThat(parentFile.getParentFile(), is(tmpDir()));
    }