@Test
public void toStringDoesntLeakPassword() {

    PlcUsernamePasswordAuthentication authentication = new PlcUsernamePasswordAuthentication("user", "top-secret");
    assertThat(authentication.toString(), Matchers.not(Matchers.containsString("top-secret")));
}