throws Exception
{
final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
final Properties parameters = new Properties();
parameters.setProperty( "type", "relax-ng" );
final Attribute attribute = new Attribute(
"phoenix:configuration-schema", parameters );
final JavaClass javaClass = new JavaClass( new JavaSource() );
javaClass.setName( "com.biz.MyClass" );
final JavaMethod method = new JavaMethod();
method.setParentClass( javaClass );
final Attribute result =
interceptor.processMethodAttribute( method, attribute );
assertNotNull( "attribute", result );
assertEquals( "attribute.name",
"dna.configuration",
result.getName() );
assertEquals( "attribute.value", null, result.getValue() );
assertEquals( "attribute.parameterCount",
1,
result.getParameterCount() );
assertEquals( "attribute.parameter(type)",
"http://relaxng.org/ns/structure/1.0",
result.getParameter( "type" ) );
}