### Question:
Configuration { public SecurityConfiguration security() { return security; } Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader,
                        ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends ConsistentHash>[] consistentHashImpl, boolean forceReturnValues, int keySizeEstimate,
                        Marshaller marshaller, Class<? extends Marshaller> marshallerClass,
                        ProtocolVersion protocolVersion, List<ServerConfiguration> servers, int socketTimeout, SecurityConfiguration security, boolean tcpNoDelay, boolean tcpKeepAlive,
                        int valueSizeEstimate, int maxRetries, NearCacheConfiguration nearCache,
                        List<ClusterConfiguration> clusters, List<String> serialAllowList, int batchSize,
                        TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features,
                        List<SerializationContextInitializer> contextInitializers,
                        Map<String, RemoteCacheConfiguration> remoteCaches); ExecutorFactoryConfiguration asyncExecutorFactory(); Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory(); @Deprecated ClassLoader classLoader(); ClientIntelligence clientIntelligence(); ConnectionPoolConfiguration connectionPool(); int connectionTimeout(); Class<? extends ConsistentHash>[] consistentHashImpl(); Class<? extends ConsistentHash> consistentHashImpl(int version); boolean forceReturnValues(); @Deprecated int keySizeEstimate(); Marshaller marshaller(); Class<? extends Marshaller> marshallerClass(); @Deprecated NearCacheConfiguration nearCache(); ProtocolVersion version(); List<ServerConfiguration> servers(); List<ClusterConfiguration> clusters(); int socketTimeout(); SecurityConfiguration security(); boolean tcpNoDelay(); boolean tcpKeepAlive(); @Deprecated int valueSizeEstimate(); int maxRetries(); @Deprecated List<String> serialWhitelist(); List<String> serialAllowList(); @Deprecated ClassAllowList getClassWhiteList(); ClassAllowList getClassAllowList(); int batchSize(); Map<String, RemoteCacheConfiguration> remoteCaches(); RemoteCacheConfiguration addRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer); void removeRemoteCache(String name); StatisticsConfiguration statistics(); TransactionConfiguration transaction(); Features features(); List<SerializationContextInitializer> getContextInitializers(); @Override String toString(); Properties properties();  }### Answer:
@Test(expectedExceptions = CacheConfigurationException.class) public void testInvalidAuthenticationConfig() { ConfigurationBuilder builder = HotRodClientTestingUtil.newRemoteConfigurationBuilder(); builder.security().authentication().enable().saslMechanism("PLAIN"); builder.build(); }