DockerStopCommand extends DockerCommand { public DockerStopCommand setGracePeriod(int value) { super.addCommandArguments("time", Integer.toString(value)); return this; } DockerStopCommand(String containerName); DockerStopCommand setGracePeriod(int value);  }
@Test public void testSetGracePeriod() throws Exception { dockerStopCommand.setGracePeriod(GRACE_PERIOD); assertEquals("stop", StringUtils.join(",", dockerStopCommand.getDockerCommandWithArguments() .get("docker-command"))); assertEquals("foo", StringUtils.join(",", dockerStopCommand.getDockerCommandWithArguments().get("name"))); assertEquals("10", StringUtils.join(",", dockerStopCommand.getDockerCommandWithArguments().get("time"))); assertEquals(3, dockerStopCommand.getDockerCommandWithArguments().size()); }