### Question:
StringUtils { public String stripGeneric(String str) { if(str == null) { return null; } int start = str.indexOf('<'); if(start == -1) { return str; } int end = str.lastIndexOf('>'); if(end == -1) { return str; } else if(end == str.length() - 1) { return str.substring(0, start); } return str.substring(0, start) + str.substring(end+1); }  static StringUtils getInstance(); String formatVariableName(String variableName); String stripPackageName(String fullyQualifiedClassName); String stripClass(String aString); String capitalized(String name); String uncapitalized(String aString); String capitalizedAsConstant(String name); String pluralize(String str); String stripGeneric(String str); String replaceWildcardInStringWithString(String wildcard, String pattern, String replacement);  }### Answer:
@Test public void testStripGeneric() throws Exception { assertEquals("List", stringUtils.stripGeneric("List")); assertEquals("List", stringUtils.stripGeneric("List<Integer>")); assertEquals("List", stringUtils.stripGeneric("List<List<Map<Integer,List<String>>>>")); assertEquals("List123", stringUtils.stripGeneric("List<List<Map<Integer,List<String>>>>123")); assertEquals("List<Integer", stringUtils.stripGeneric("List<Integer")); }