public void createTempFolder() throws Exception {
ServerFileSystem fs = mock(ServerFileSystem.class);
File serverTempFolder = temp.newFolder();
when(fs.getTempDir()).thenReturn(serverTempFolder);
TempFolderProvider tempFolderProvider = new TempFolderProvider();
TempFolder tempUtils = tempFolderProvider.provide(fs);
tempUtils.newDir();
tempUtils.newFile();
assertThat(new File(serverTempFolder, "tmp")).exists();
assertThat(new File(serverTempFolder, "tmp").list()).hasSize(2);
}