TempFileGeneratorImpl implements TempFileGenerator { @Override public File generate() throws IOException { File file = File.createTempFile(TEMP_FILE_PREFIX, TEMP_FILE_SUFFIX); file.deleteOnExit(); return file; }  @Override File generate();  }
@Test public void test() throws IOException { assertThat(new TempFileGeneratorImpl().generate(), notNullValue()); }