@Test public void testExportToDirectory() throws Exception { closeFileHandlesInEtc(); resetInitialState(); String response = console.runCommand(EXPORT_COMMAND + " \"" + temporaryFolder.getRoot() + "\""); assertThat( String.format("Exporting current configurations to %s.", temporaryFolder.toString()), response, containsString("Successfully exported all configurations.")); assertExportContents(temporaryFolder.getRoot().toPath()); }