BrooklynTypeNameResolution { static GenericsRecord parseTypeGenerics(String s) { return parseTypeGenerics(s, (String t, List<GenericsRecord> tt) -> new GenericsRecord(t, tt)); }  static Maybe<TypeToken<?>> getTypeTokenForBuiltInTypeName(String className); static Maybe<Class<?>> getClassForBuiltInTypeName(String className); static Map<String, Class<?>> standardTypesMap(); static boolean isBuiltInType(String s);  }
@Test public void testParse() throws NoSuchFieldException { Assert.assertEquals(parseTypeGenerics("t1").toString(), "t1"); Assert.assertEquals(parseTypeGenerics(" t1 ").toString(), "t1"); Assert.assertEquals(parseTypeGenerics(" t1 < a >").toString(), "t1<a>"); Assert.assertEquals(parseTypeGenerics(" t1 < a >").baseName.toString(), "t1"); Assert.assertEquals(Iterables.getOnlyElement(parseTypeGenerics(" t1 < a >").params).toString(), "a"); Assert.assertEquals(parseTypeGenerics(" t1 < t2<t3>, t4,t5< t6 > >").toString(), "t1<t2<t3>,t4,t5<t6>>"); }