### Question:
DefaultFilesystemAttachmentsConfiguration implements FilesystemAttachmentsConfiguration { @Override public File getDirectory() { String directory = this.configuration.getProperty(PREFIX + "directory"); return directory != null ? new File(directory) : null; }  @Override boolean cleanOnStartup(); @Override File getDirectory();  }### Answer:
@Test public void getDirectory() throws IOException { assertNull(configuration.getDirectory()); Path tempDir = Files.createTempDirectory("testxwiki"); when(configurationSource.getProperty("store.file.directory")).thenReturn(tempDir.toString()); assertEquals(tempDir.toFile(), configuration.getDirectory()); }