pattern = new TypePattern("STR*<STR*>");
assertTrue(pattern.matches("STRING<STRONG>"));
pattern = new TypePattern("STR*<STR*<*>>");
assertTrue(pattern.matches("STRING<STRONG<LONG>>"));
assertTrue(pattern.matches("STRING<STRONG>"));
// wildcards in names will mostly be used for the record type argument for records
pattern = new TypePattern("RECORD<{namespace}*>");
assertTrue(pattern.matches("RECORD<{namespace}foo>"));
assertFalse(pattern.matches("RECORD<{othernamespace}foo>"));