@Test
public void testApplyCommonSettings_withSsl_withSasl_withNoTrustStore() {

    final ClusterConfig clusterConfig = ClusterConfig.newBuilder()
        .withBrokerHosts(expectedBrokerHosts)
        .withUseSsl(true)
        .withKeyStoreFile(expectedKeyStoreFile)
        .withKeyStorePassword(expectedKeyStorePassword)
        .withTrustStoreFile(null)
        .withTrustStorePassword(null)
        .withUseSasl(true)
        .withSaslMechanism(expectedSaslPlainMechanism)
        .withSaslPlaintextUsername(expectedSaslUsername)
        .withSaslPlaintextPassword(expectedSaslPassword)
        .withSaslJaas(expectedSaslJaas)
        .build();
    final Map<String, Object> config = util.applyCommonSettings(clusterConfig, consumerId);
    // Validate
    validateDefaultKeys(config);
    validateSsl(config, "SASL_SSL", false, false);
    validateSaslPlainMechanism(config, "SASL_SSL");
}