return thisObject;
}
public void testIncompatibleClass() throws Exception {
JavaObject thisJavaObject = getScenerioReference();
JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
JavaObject incompatibleClass = getJavaObjectByClassname(setup.incompatibleClassName);
assertNotNull("Couldn't find "+setup.incompatibleClassName,incompatibleClass);
try{
boolean trueBooleanValue = trueBooleanField.getBoolean(incompatibleClass);
fail("JavaField.getBoolean() didn't fail when passed Object of wrong class");
}catch (IllegalArgumentException e) {
// expected
}
}