}
@Test
public void testAuthentication() {
ConfigurationBuilder clientBuilder = initServerAndClient();
clientBuilder.security().authentication().callbackHandler(new TestCallbackHandler("user", "realm", "password".toCharArray()));
remoteCacheManager = new RemoteCacheManager(clientBuilder.build());
RemoteCache<String, String> defaultRemote = remoteCacheManager.getCache();
defaultRemote.put("a", "a");
assertEquals("a", defaultRemote.get("a"));
}