@Test
public void testLookupClass() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
ImageBootstrapper.bootstrap();
systemMapping = ImageBootstrapper.systemMapping;
Reference ref = Reference.factory.value_("st.gravel.lang.Message class");
AbstractClassMapping meta = systemMapping.classMappingAtReference_(ref);
Object cl = systemMapping.singletonAtReference_(ref.nonmeta());
Method basicNew = cl.getClass().getMethod("basicNew");
Object instance = basicNew.invoke(cl);
Method r_class = instance.getClass().getMethod("r_class");
Object instanceClass = r_class.invoke(instance);
assertEquals(meta.identityClass(), instanceClass.getClass());