### Question:
DockerStopCommand extends DockerCommand { public DockerStopCommand setGracePeriod(int value) { super.addCommandArguments("--time=" + Integer.toString(value)); return this; } DockerStopCommand(String containerName); DockerStopCommand setGracePeriod(int value);  }### Answer:
@Test public void testSetGracePeriod() throws Exception { dockerStopCommand.setGracePeriod(GRACE_PERIOD); assertEquals("stop foo --time=10", dockerStopCommand.getCommandWithArguments()); }