p.validate(nshandlers.getSchema());
ComponentDefinitionRegistry cdr = new ComponentDefinitionRegistryImpl();
p.populate(nshandlers, cdr);
BeanMetadata comp = (BeanMetadata) cdr.getComponentDefinition("top");
BeanMetadata anon = (BeanMetadata) ((BeanProperty) comp.getProperties().get(0)).getValue();
BeanMetadata anonToo = (BeanMetadata) ((BeanProperty) comp.getProperties().get(1)).getValue();
assertEquals("Required", txenhancer.getComponentMethodTxAttribute(anon, "doSomething"));
assertEquals("Never", txenhancer.getComponentMethodTxAttribute(anonToo, "doSomething"));
}