@Test
public void restartAgentContainer() {

    Interceptor<DockerClient> interceptor = Interceptor.wrap(dockerClient, DockerClient.class);
    DefaultDockerClientFacade facade = new DefaultDockerClientFacade(interceptor.buildProxy());
    Container container = new Container();
    dockerClient.container(container);
    String taskId = facade.restartAgent(container.getId());
    assertThat(taskId).isEqualTo(container.getId());
    assertThat(container.isRunning()).isTrue();
    assertThat(interceptor.getInvocations()).hasSize(1).first()
            .matches(invocation -> invocation.matches("restartContainer", container.getId()));
}