public void to(Action<? super TargetImageParameters> action) {
    action.execute(to);
  }
@Test
  public void testTo() {
    assertThat(testJibExtension.getTo().getImage()).isNull();
    assertThat(testJibExtension.getTo().getCredHelper().getHelper()).isNull();

    testJibExtension.to(
        to -> {
          to.setImage("some image");
          to.setCredHelper("some cred helper");
          to.auth(auth -> auth.setUsername("some username"));
          to.auth(auth -> auth.setPassword("some password"));
        });
    assertThat(testJibExtension.getTo().getImage()).isEqualTo("some image");
    assertThat(testJibExtension.getTo().getCredHelper().getHelper()).isEqualTo("some cred helper");
    assertThat(testJibExtension.getTo().getAuth().getUsername()).isEqualTo("some username");
    assertThat(testJibExtension.getTo().getAuth().getPassword()).isEqualTo("some password");
  }