CommandConverter { public SystemCommandDetails toCommandDetails(final SystemCommand systemCommand) { return new SystemCommandDetails( systemCommand.getName(), systemCommand.getDescription() ); }  SystemCommandDetails toCommandDetails(final SystemCommand systemCommand);  }
@Test public void shouldConvertSystemCommandToSystemCommandDetails() throws Exception { final SystemCommand systemCommand = new TestCommand(); final SystemCommandDetails systemCommandDetails = commandConverter.toCommandDetails(systemCommand); assertThat(systemCommandDetails.getName(), is(systemCommand.getName())); assertThat(systemCommandDetails.getDescription(), is(systemCommand.getDescription())); }