throws Exception
{
final DNAAttributeInterceptor interceptor = new DNAAttributeInterceptor();
final Properties parameters = new Properties();
parameters.setProperty( "type", "X" );
final Attribute attribute = new Attribute( "dna.service", parameters );
final Attribute result =
interceptor.processClassAttribute( new MockJavaClass(), attribute );
assertNotNull( "attribute", result );
assertEquals( "attribute.name", "dna.service", result.getName() );
assertEquals( "attribute.value", null, result.getValue() );
assertEquals( "attribute.parameterCount", 1, result.getParameterCount() );
assertEquals( "attribute.parameter(type)",
MockJavaSource.PREFIX + "X", result.getParameter( "type" ) );
}