getComplexProperty( ExampleConstants.RESOURCE_PROP_QNAME_CAPACITY, RESOURCE_ID );
assertNotNull( propElems );
assertTrue( propElems.length == 1 );
assertEquals( ExampleConstants.INITIAL_PROP_VALUE__CAPACITY.toString( ),
propElems[0].getValue( ) );
MetricAttributes metricAttribs = MetricUtils.getMetricAttributes( propElems[0] );
Date lastUpdated = metricAttribs.getLastUpdated( );
assertNotNull( lastUpdated );
assertTrue( "LastUpdated metric attrib value not within three seconds of current time.",
( new Date( ).getTime( ) - lastUpdated.getTime( ) ) < 3000 );
}