### Question:
ClassMethodInspector { public List<String> getMethodNames() { List<String> methodList = new ArrayList<String>(); for (MethodInfo info : methods) { methodList.add(info.getName()); } return methodList; } ClassMethodInspector(final Class<?> clazz,
                                final ClassToGenericClassConverter converter); List<String> getMethodNames(); List<MethodInfo> getMethodInfos();  }### Answer:
@Test public void testMoreThanOneMethodWithTheSameName() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(MoreThanOneMethodWithTheSameName.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testCollection() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(Collection.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testArrayList() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(ArrayList.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testList() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(List.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testSet() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(Set.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testMap() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(Map.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testMyMap() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(MyMap.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testMultiParameterSetter() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(MultiParameterSetter.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } assertEquals(1, ext.getMethodNames().size()); }
@Test public void testGetterWithParameters() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(MyMap.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }
@Test public void testBooleanGetterWithParameters() throws Exception { final ClassMethodInspector ext = new ClassMethodInspector(MyMap.class, new JavaTypeSystemTranslator()); for (String s : ext.getMethodNames()) { assertFalse("Method " + s + " is not allowed.", checkBlackList(s)); } }