@Test
public void testExecuteDockerCommand() throws Exception {

  DockerStopCommand dockerStopCommand =
      new DockerStopCommand(MOCK_CONTAINER_ID);
  DockerCommandExecutor.executeDockerCommand(dockerStopCommand,
      cId.toString(), env, mockExecutor, false, nmContext);
  List<PrivilegedOperation> ops = MockPrivilegedOperationCaptor
      .capturePrivilegedOperations(mockExecutor, 1, true);
  assertEquals(1, ops.size());
  assertEquals(PrivilegedOperation.OperationType.RUN_DOCKER_CMD.name(),
      ops.get(0).getOperationType().name());
}