{
MutableMetaDataRepository repository = getMetaDataRepository().getMetaDataRepository();
ScopeKey instanceScope = new ScopeKey(CommonLevels.INSTANCE, "TestBean");
MemoryMetaDataLoader loader = new MemoryMetaDataLoader(instanceScope);
TestAnnotation2 annotation = (TestAnnotation2) AnnotationCreator.createAnnotation("@org.jboss.test.kernel.deployment.support.TestAnnotation2", TestAnnotation2.class);
loader.addAnnotation(annotation);
repository.addMetaDataRetrieval(loader);
ScopeKey setStringScope = new ScopeKey(CommonLevels.JOINPOINT, "setString");
MemoryMetaDataLoader stringProperty = new MemoryMetaDataLoader(setStringScope);
stringProperty.addAnnotation(annotation);
Signature signature = new MethodSignature("setString", String.class);