@SpecAssertion(section = "8.1.1.5", id = "o")
public void testValidaAnnotationIsApplied() throws Exception {
MethodDescriptor descriptor = TestUtil.getMethodDescriptor( Cascaded.class, "cascade", String.class );
assertNotNull( descriptor, "the specified method should be configured in xml" );
ReturnValueDescriptor returnValueDescriptor = descriptor.getReturnValueDescriptor();
assertTrue( returnValueDescriptor.isCascaded(), "Cascaded validation should be applied" );
ParameterDescriptor parameterDescriptor = descriptor.getParameterDescriptors().get( 0 );
assertTrue( parameterDescriptor.isCascaded(), "Cascaded validation should be applied" );
}