@Test
public void testGetTypeFromNameBadSyntax() {

  String[] badSyntax = {"map<string, int", "map<string>", "list<<>>", ""};
  for (String name : badSyntax) {
    try {
      assertThat(CodecUtils.getTypeFromName(name)).isNull();
      fail("InvalidTypeException expected for " + name);
    } catch (InvalidTypeException ite) {
      // expected
    }
  }
}