*
*/
public void testRegionDefinitonWithBothAttributes()
throws Exception
{
ICompositeCacheAttributes ca = new CompositeCacheAttributes();
long maxIdleTime = 8765;
ca.setMaxMemoryIdleTimeSeconds( maxIdleTime );
long maxLife = 9876;
IElementAttributes attr = new ElementAttributes();
attr.setMaxLifeSeconds( maxLife );
CacheAccess access = CacheAccess.defineRegion( "testRegionDefinitonWithAttributes", ca, attr );
assertNotNull( "We should have an access class", access );
ICompositeCacheAttributes ca2 = access.getCacheAttributes();
assertEquals( "Wrong idle time setting.", ca.getMaxMemoryIdleTimeSeconds(), ca2.getMaxMemoryIdleTimeSeconds() );
}