factoryBean.setTypeAliasesPackage("org/mybatis/spring/type");
TypeAliasRegistry typeAliasRegistry = factoryBean.getObject().getConfiguration().getTypeAliasRegistry();
typeAliasRegistry.resolveAlias("testAlias");
typeAliasRegistry.resolveAlias("testAlias2");
typeAliasRegistry.resolveAlias("dummyTypeHandler");
typeAliasRegistry.resolveAlias("superType");
}
@Test
public void testSearchATypeAliasPackageWithSuperType() throws Exception {