@Test
    public void toStringDoesntLeakPassword() {
        PlcUsernamePasswordAuthentication authentication = new PlcUsernamePasswordAuthentication("user", "top-secret");

        assertThat(authentication.toString(), Matchers.not(Matchers.containsString("top-secret")));
    }
Usually in a toString method most properties are output.
However, the password field should never be output this way or the password could be leaked to a log-file
unintentionally.
plc4j/api/src/test/java/org/apache/plc4x/java/api/authentication/PlcUsernamePasswordAuthenticationTest.java