@Test
void shouldFailIfDirectoryExists(@TempDir final Path temp) throws Exception {

    final Path home = Files.createDirectories(temp.resolve("home"));
    final Path reportPath = Files.createDirectories(temp.resolve("report"));
    Files.createTempFile(reportPath, "some", ".txt");
    final Commands commands = new Commands(home);
    final ExitCode exitCode = commands.generate(reportPath, null, false,
            null);
    assertThat(exitCode)
            .isEqualTo(ExitCode.GENERIC_ERROR);
}