public void dockerClient(Action<? super DockerClientParameters> action) {
    action.execute(dockerClient);
  }
@Test
  public void testDockerClient() {
    testJibExtension.dockerClient(
        dockerClient -> {
          dockerClient.setExecutable("test-executable");
          dockerClient.setEnvironment(ImmutableMap.of("key1", "val1", "key2", "val2"));
        });

    assertThat(testJibExtension.getDockerClient().getExecutablePath())
        .isEqualTo(Paths.get("test-executable"));
    assertThat(testJibExtension.getDockerClient().getEnvironment())
        .containsExactly("key1", "val1", "key2", "val2")
        .inOrder();
  }