Account fromRemoteCache = remoteCache.get(1);
assertRemoteAccount(fromRemoteCache);
}
public void testPutAndGetForEmbeddedEntry() throws Exception {
AccountHS account = new AccountHS();
account.setId(1);
account.setDescription("test description");
account.setCreationDate(new Date(42));
cache.put(1, account);
// try to get the object through the local cache interface and check it's the same object we put
assertEquals(1, remoteCache.keySet().size());
Object key = remoteCache.keySet().iterator().next();