assertContainsURI( capabilityElems, MetricsCapability.URI );
XmlObject currentTimePropElem = getSingleProperty( m_resource, org.apache.ws.muws.v1_0.capability.MetricsCapability.PROP_NAME_CURRENT_TIME );
assertTrue( currentTimePropElem instanceof XmlDateTime );
XmlObject numRequestsPropElem = getSingleProperty( m_resource, MetricsCapability.PROP_NAME_NUMBER_OF_REQUESTS );
assertTrue( numRequestsPropElem instanceof IntegerCounter );
IntegerCounter numRequestsMetric = ((IntegerCounter)numRequestsPropElem);
long numRequests = numRequestsMetric.getBigIntegerValue().longValue();
assertTrue( "ResetAt metadata attribute is not set", numRequestsMetric.isSetResetAt() );
assertFalse( "Duration metadata attribute is set", numRequestsMetric.isSetDuration() );
XmlObject numFailedRequestsPropElem = getSingleProperty( m_resource, MetricsCapability.PROP_NAME_NUMBER_OF_FAILED_REQUESTS );
assertTrue( numFailedRequestsPropElem instanceof IntegerCounter );
IntegerCounter numFailedRequestsMetric = ((IntegerCounter)numFailedRequestsPropElem);
long numFailedRequests = numFailedRequestsMetric.getBigIntegerValue().longValue();
assertTrue( "ResetAt metadata attribute is not set", numFailedRequestsMetric.isSetResetAt() );
assertFalse( "Duration metadata attribute is set", numFailedRequestsMetric.isSetDuration() );
XmlObject numSuccessfulRequestsPropElem = getSingleProperty( m_resource, MetricsCapability.PROP_NAME_NUMBER_OF_SUCCESSFUL_REQUESTS );
assertTrue( numSuccessfulRequestsPropElem instanceof IntegerCounter );
IntegerCounter numSuccessfulRequestsMetric = ((IntegerCounter)numSuccessfulRequestsPropElem);
long numSuccessfulRequests = numSuccessfulRequestsMetric.getBigIntegerValue().longValue();
assertTrue( "ResetAt metadata attribute is not set", numSuccessfulRequestsMetric.isSetResetAt() );
assertFalse( "Duration metadata attribute is set", numSuccessfulRequestsMetric.isSetDuration() );
assertTrue( numRequests >= numFailedRequests + numSuccessfulRequests );
XmlObject serviceTimePropElem = getSingleProperty( m_resource, MetricsCapability.PROP_NAME_SERVICE_TIME );
assertTrue( serviceTimePropElem instanceof DurationMetric );
DurationMetric serviceTimeMetric = ((DurationMetric)serviceTimePropElem);
assertTrue( "Duration metadata attribute is not set", serviceTimeMetric.isSetDuration() );