CacheClientBuilder { public CacheClientBuilder clientId(String clientId) { this.clientId = clientId; return this; } private  CacheClientBuilder(); static CacheClientBuilder newBuilder(); CacheClientBuilder clientId(String clientId); CacheClientBuilder fetchPriority(int fetchPriority); CacheClientBuilder evictionBatchSize(int evictionBatchSize); CacheClientBuilder entrySerializer(EntrySerializer entrySerializer); CacheClientBuilder zkPath(String zkPath); CacheClientBuilder zkConnectString(String zkConnectString); CacheClientBuilder localCacheServer(Object cacheServer); CacheClientBuilder zkSessionTimeout(int zkSessionTimeout); CacheClientBuilder maxMemory(long maxMemory); CacheClientBuilder maxLocalEntryAge(long maxLocalEntryAge); CacheClientBuilder port(int port); CacheClientBuilder host(String host); CacheClientBuilder ssl(boolean ssl); CacheClientBuilder jmx(final boolean jmx); CacheClientBuilder connectTimeout(int connectTimeout); CacheClientBuilder socketTimeout(int socketTimeout); CacheClientBuilder mode(Mode mode); CacheClientBuilder clientSecret(String clientSecret); CacheClient build();  }
@Test public void testClientId() { try (CacheClient client = CacheClient .newBuilder() .serverLocator(serverLocator) .clientId("foo") .build();) { assertTrue(client.getClientId().startsWith("foo")); } }