Value (Field field) { try { java.lang.reflect.Field refField = ((MockField)field).getField(); refField.setAccessible(true); Object value = refField.get(myObject); return value == null ? null : MockValue.createValue(value, refField.getType(), myVirtualMachine); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }