CassandraClientConfig expected = new CassandraClientConfig()
.setLimitForPartitionKeySelect(100)
.setFetchSizeForPartitionKeySelect(500)
.setMaxSchemaRefreshThreads(2)
.setSchemaCacheTtl(new Duration(2, TimeUnit.HOURS))
.setSchemaRefreshInterval(new Duration(30, TimeUnit.MINUTES))
.setContactPoints("host1", "host2")
.setNativeProtocolPort(9999)
.setFetchSize(10_000)
.setConsistencyLevel(ConsistencyLevel.TWO)
.setPartitionSizeForBatchSelect(77)
.setSplitSize(1_025)
.setThriftPort(9161)
.setPartitioner("RandomPartitioner")
.setTransportFactoryOptions("a=b")
.setThriftConnectionFactoryClassName("org.apache.cassandra.thrift.TFramedTransportFactory1")
.setAllowDropTable(true)
.setUsername("my_username")
.setPassword("my_password")
.setClientReadTimeout(new Duration(11, MILLISECONDS))
.setClientConnectTimeout(new Duration(22, MILLISECONDS))
.setClientSoLinger(33)
.setRetryPolicy(RetryPolicyType.BACKOFF);
ConfigAssertions.assertFullMapping(properties, expected);
}