}
@SuppressWarnings("deprecation")
protected TypeInfo testBasics(Class<?> clazz, TypeInfo expected) throws Throwable
{
TypeInfoFactory factory = getTypeInfoFactory();
getLog().debug("Using typeInfoFactory: " + factory);
TypeInfo info = factory.getTypeInfo(clazz.getName(), getClass().getClassLoader());
getLog().debug("Got: " + info + " from " + clazz);
assertNotNull(info);
assertEquals(info, expected);
ClassLoader cl = getClass().getClassLoader();
info = factory.getTypeInfo(clazz);
getLog().debug("Got: " + info + " from " + clazz.getName() + " cl=" + cl);
assertNotNull(info);
assertEquals(info, expected);
getLog().debug("Name: " + info.getName());