assertEquals(4, descriptors.length);
}
@Test
public void testIllegalMethodType() {
A a = new A();
String methodName = "setB";
try {
Method method = a.getClass().getMethod(methodName, B.class);
ReflectionUtils.invoke(method, a, new Object[] {"wrong param"});
} catch (NoSuchMethodException e) {
Assert.fail("Method " + methodName + "missed");
} catch (MappingException e) {
if(!e.getMessage().contains("Illegal object type for the method '" + methodName +"'")) {