public void testPrimitive() throws ClassNotFoundException,
ConversionException, ClassInfoException {
final Class<?> intClass = int.class;
final String name = intClass.getName();
final ClassInfo classInfoByClass = classInfoFactory
.getNoProxyClassInfo(intClass);
classInfoFactory.clear();
assertTrue(CLASS_MUST_EXIST, classInfoByClass.classExists());
assertEquals(BAD_CLASS_INFO_BY_CLASS_CLASS, intClass,
classInfoByClass.getObjectClass());
assertEquals(BAD_CLASS_INFO_BY_CLASS_NAME, name,
classInfoByClass.getName());
final ClassInfo classInfoByName = classInfoFactory.getClassInfo(name);
classInfoFactory.clear();
assertTrue(CLASS_MUST_EXIST, classInfoByName.classExists());
assertEquals(BAD_CLASS_INFO_BY_NAME_NAME, name,
classInfoByName.getName());
assertEquals(BAD_CLASS_INFO_BY_NAME_CLASS, intClass,
classInfoByName.getObjectClass());
}