assertEquals("Hello", runOnInstance(c, instance, "getTheMessage").returnValue);
}
@Test
public void primitiveStaticFieldRewriting() throws Exception {
TypeRegistry r = getTypeRegistry("data.StaticFieldsB");
ReloadableType rtype = r.addType("data.StaticFieldsB", loadBytesForClass("data.StaticFieldsB"));
Class<?> c = rtype.getClazz();
Object instance = c.newInstance();
assertEquals(23, runOnInstance(c, instance, "getI").returnValue);
assertEquals(false, runOnInstance(c, instance, "isB").returnValue);
assertEquals("{true,false,true}", objectArrayToString(runOnInstance(c, instance, "getBs").returnValue));