processor.visitField(field, type);
assertEquals(field, type.getCallbackMembers().get(FooCallback.class.getName()).getAnchor());
}
public void testFieldCallbackInterface1() throws Exception {
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
processor.visitClass(FooImpl1.class, type);
org.apache.tuscany.sca.assembly.Service service = getService(type, Foo.class.getSimpleName());
assertNotNull(service);
Field field1 = FooImpl1.class.getDeclaredField("callbackRef");
processor.visitField(field1, type);
assertEquals(field1, type.getCallbackMembers().get(FooCallback.class.getName()).getAnchor());
}