@Test
public void smokeTest() {

    final String secretPhrase = "secret";
    final SaslProperties saslProperties = new SaslProperties("Username", secretPhrase, "Anything", "Something");
    // Create cluster
    final Cluster cluster = new Cluster();
    cluster.setName("My Test Cluster");
    cluster.setSaslConfig(saslUtility.encryptProperties(saslProperties));
    cluster.setSaslEnabled(true);
    
    // Create a mock config
    final Map<String, Object> mockConfig = new HashMap<>();
    mockConfig.put("Key1", "Value1");
    mockConfig.put("Key2", "Value2");
    // Add "sensitive" fields
    mockConfig.put(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG, secretPhrase);
    mockConfig.put(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG, secretPhrase);
    mockConfig.put(SaslConfigs.SASL_JAAS_CONFIG, "Anything anything " + secretPhrase + " something");
    // Call method under test
    final Map<String, Object> scrubbed = scrubber.filterSensitiveOptions(mockConfig, cluster);
    // Verify we have a new instance.
    assertNotSame("Should be different instances", scrubbed, mockConfig);
    // Verify keys
    assertEquals(scrubbed.get("Key1"), mockConfig.get("Key1"));
    assertEquals(scrubbed.get("Key2"), mockConfig.get("Key2"));
    // Sensitive fields no longer match
    assertNotEquals(scrubbed.get(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG), mockConfig.get(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG));
    assertEquals("**HIDDEN**", scrubbed.get(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG));
    assertNotEquals(scrubbed.get(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG), mockConfig.get(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG));
    assertEquals("**HIDDEN**", scrubbed.get(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG));
    assertNotEquals(scrubbed.get(SaslConfigs.SASL_JAAS_CONFIG), mockConfig.get(SaslConfigs.SASL_JAAS_CONFIG));
    assertFalse(
        ((String)scrubbed.get(SaslConfigs.SASL_JAAS_CONFIG)).contains(secretPhrase)
    );
}