@Test
public void testVisitMethod() throws Exception {
Method method = Foo.class.getMethod("setBar", Bar.class);
processor.visitMethod(method, type);
JavaResourceImpl resource = type.getResources().get("bar");
assertFalse(resource.isOptional());
assertNull(resource.getMappedName());
assertEquals(method.getParameterTypes()[0], resource.getElement().getType());
}