### Question:
CommandUtils { public static String constructCommandPath(CommandDescription command) { StringBuilder sb = new StringBuilder(); String prefix = "/"; for (CommandDescription ancestor : constructParentList(command)) { sb.append(prefix).append(ancestor.getLabels().get(0)); prefix = " "; } return sb.toString(); } private  CommandUtils(); static int getMinNumberOfArguments(CommandDescription command); static int getMaxNumberOfArguments(CommandDescription command); static List<CommandDescription> constructParentList(CommandDescription command); static String constructCommandPath(CommandDescription command); static String buildSyntax(CommandDescription command, List<String> correctLabels); static String formatArgument(CommandArgumentDescription argument);  }### Answer:
@Test public void shouldReturnCommandPath() { CommandDescription base = CommandDescription.builder() .labels("authme", "auth") .description("Base") .detailedDescription("Test base command.") .executableCommand(ExecutableCommand.class) .register(); CommandDescription command = CommandDescription.builder() .parent(base) .labels("help", "h", "?") .description("Child") .detailedDescription("Test child command.") .executableCommand(ExecutableCommand.class) .register(); String commandPath = CommandUtils.constructCommandPath(command); assertThat(commandPath, equalTo("/authme help")); }