### Question:
AbstractCommand implements Command { protected void addServerArgument(ArgumentListBuilder arguments) { arguments.add(String.format("-server:%s", config.getUrl())); } AbstractCommand(ServerConfigurationProvider configurationProvider); ServerConfigurationProvider getConfig();  }### Answer:
@Test public void assertAddingServerArguments() { ServerConfigurationProvider config = mock(ServerConfigurationProvider.class); when(config.getUrl()).thenReturn("https: AbstractCommand command = new AbstractCommandImpl(config); ArgumentListBuilder builder = new ArgumentListBuilder(); command.addServerArgument(builder); assertEquals("The server URL was incorrect", "-server:https: }