@Test
public void testGetTypeFromNameRepeatedCallsShouldReturnSameObject() {

  for (String name : new String[] {"ascii", "set<ascii>", "tuple<int,int,list<ascii>>"}) {
    // ensures the cache is working appropriately.
    RawType rawType = CodecUtils.getTypeFromName(name);
    for (int i = 0; i < 10; i++) {
      assertThat(CodecUtils.getTypeFromName(name)).isNotNull().isSameAs(rawType);
    }
  }
}