@Test
public void invalidConstructorInput() {

    assertThatExceptionOfType(NullPointerException.class).isThrownBy(
            () -> DockerRegistryCredentials.from(null, "pwd"));
    assertThatExceptionOfType(NullPointerException.class).isThrownBy(
            () -> DockerRegistryCredentials.from("usr", null));
    assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(
            () -> DockerRegistryCredentials.from("", "pwd"));
}