@Test
public void shouldBeValidIfContainsSupportedSaslMechanism() {

    assertThat(underTest.isValid(getConnectionWithSaslMechanism(KNOWN_PLAIN_SASL_MECHANISM))).isTrue();
    assertThat(underTest.isValid(getConnectionWithSaslMechanism(KNOWN_SHA256_SASL_MECHANISM))).isTrue();
    assertThat(underTest.isValid(getConnectionWithSaslMechanism(KNOWN_SHA512_SASL_MECHANISM))).isTrue();
}