assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownMethod2"));
assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownField2"));
}
public void testKeyBindingRestrictedAccess$withoutProtectedAccessor() {
NoAccessClass obj = new NoAccessClass();
try {
Utility.valueForKey(obj, "knownField");
fail("UnknownKeyException expected");
} catch (UnknownKeyException e) {
}