@@ -0,0 +1,617 @@
+package de.retest.recheck.util;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0A%0Apublic class DeleteOnCloseFileInputStreamTest %7B%0A%0A%09@Rule%0A%09public TemporaryFolder tempFolder = new TemporaryFolder();%0A%0A%09@Test%0A%09public void file_should_be_deleted_on_close() throws IOException %7B%0A%09%09final File file = tempFolder.newFile();%0A%09%09final InputStream in = new DeleteOnCloseFileInputStream( file );%0A%0A%09%09in.close();%0A%0A%09%09assertThat( file ).doesNotExist();%0A%09%7D%0A%0A%7D%0A

Add test from review