String regionName = "testPutRemove";
AuxiliaryCache cache = remoteCacheManager.getCache( regionName );
// DO WORK
int numPutsPrior = server.getPutCount();
ICacheElement element = new CacheElement( regionName, "key", "value" );
cache.update( element );
SleepUtil.sleepAtLeast( 50 );
// VERIFY
System.out.println( server.getStats() );
assertEquals( "Wrong number of puts", 1, server.getPutCount() - numPutsPrior );
// DO WORK
ICacheElement result = cache.get( "key" );
// VERIFY
assertEquals( "Wrong element.", element.getVal(), result.getVal() );
// DO WORK
cache.remove( "key" );
SleepUtil.sleepAtLeast( 50 );
ICacheElement resultAfterRemote = cache.get( "key" );