### Question:
Util { static String extractList(String rawType) { String listType = rawType.substring(15, rawType.length() - 1); if (listType.startsWith("? extends")) { return listType.substring(10); } return listType; }  static String getNamed(Element p); static String addForInterface(String interfaceType); static String trimMethod(String method);  }### Answer:
@Test public void extractList() { assertEquals("Foo", Util.extractList("List<? extends Foo>")); assertEquals("org.foo.Bar", Util.extractList("List<? extends org.foo.Bar>")); }