### Question:
DaemonDir { public CommandDir createCommandDir() throws IOException { return new CommandDir(createUniqueDirUnder(getCommandsDir())); } DaemonDir(Path baseDir); Path getCommandsDir(); CommandDir createCommandDir(); SuiteDir createSuiteDir(); @Override String toString();  }### Answer:
@Test public void creates_command_directories() throws IOException { CommandDir dir = daemonDir.createCommandDir(); assertThat("command dir", relativeToBaseDir(dir.getPath()), doesMatchRegex("commands/\\d+")); assertThat("request file", relativeToBaseDir(dir.getRequestPath()), doesMatchRegex("commands/\\d+/request")); assertThat("response file", relativeToBaseDir(dir.getResponsePath()), doesMatchRegex("commands/\\d+/response")); }