### Question:
StaticFactoryConverter extends AbstractConverter { static List<Method> getCandidates(final Class type) { final List<Method> candidates = new ArrayList<Method>(); for (final Method method : type.getMethods()) { if (!Modifier.isStatic(method.getModifiers())) continue; if (!Modifier.isPublic(method.getModifiers())) continue; if (!method.getReturnType().equals(type)) continue; if (method.getParameterTypes().length != 1) continue; if (!method.getParameterTypes()[0].equals(String.class)) continue; candidates.add(method); } return candidates; } StaticFactoryConverter(final Class type, final Method method); static StaticFactoryConverter editor(final Class type);  }### Answer:
@Test public void getCandidates() throws Exception { final List<Method> candidates = StaticFactoryConverter.getCandidates(Red.class); assertTrue(candidates.contains(red("valueOf"))); assertTrue(candidates.contains(red("parse"))); assertTrue(candidates.contains(red("from"))); assertTrue(candidates.contains(red("parseRed"))); assertEquals(4, candidates.size()); }