assertNotNull(removeMethods);
assertEquals(5, removeMethods.size());
NamedMethodMetaData namedMethod = createNamedMethodMD("remove", "boolean");
RemoveMethodMetaData removeMethod = getRemoveMethod(removeMethods, namedMethod);
assertNotNull(removeMethod);
assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
assertNotNull(removeMethod.getBeanMethod().getMethodParams());
assertEquals(1, removeMethod.getBeanMethod().getMethodParams().size());
assertFalse(removeMethod.isRetainIfException());
namedMethod = createNamedMethodMD("remove", new String[]{"boolean", "boolean"});
removeMethod = getRemoveMethod(removeMethods, namedMethod);
assertNotNull(removeMethod);
assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
assertNotNull(removeMethod.getBeanMethod().getMethodParams());
assertEquals(2, removeMethod.getBeanMethod().getMethodParams().size());
assertTrue(removeMethod.isRetainIfException());
namedMethod = createNamedMethodMD("retain", "boolean");
removeMethod = getRemoveMethod(removeMethods, namedMethod);
assertNotNull(removeMethod);
assertEquals("retain", removeMethod.getBeanMethod().getMethodName());
assertNotNull(removeMethod.getBeanMethod().getMethodParams());
assertEquals("boolean", removeMethod.getBeanMethod().getMethodParams().get(0));
assertFalse(removeMethod.isRetainIfException());
namedMethod = createNamedMethodMD("retain", null);
removeMethod = getRemoveMethod(removeMethods, namedMethod);
assertNotNull(removeMethod);
assertEquals("retain", removeMethod.getBeanMethod().getMethodName());
assertNull(removeMethod.getBeanMethod().getMethodParams());
assertTrue(removeMethod.isRetainIfException());
namedMethod = createNamedMethodMD("remove", null);
removeMethod = getRemoveMethod(removeMethods, namedMethod);
assertNotNull(removeMethod);
assertEquals("remove", removeMethod.getBeanMethod().getMethodName());
assertTrue(removeMethod.getBeanMethod().getMethodParams().isEmpty());
assertFalse(removeMethod.isRetainIfException());
}