}
public void testProcessMethodAttributeWithPhoenixConfigurationSchemaSpecifyingType()
throws Exception
{
final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
final Properties parameters = new Properties();
final String type = "BobbaFett";
parameters.setProperty( "type", type );
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() );