assertThat(object.getDouble("wrappedDouble"), is(Double.MAX_VALUE));
}
@Test
public void wrappedPropertyConversion_toModel_works() {
EDBObject object = new EDBObject("test");
object.putEDBObjectEntry(EDBConstants.MODEL_TYPE, WrappedPropertiesModel.class.getName());
object.putEDBObjectEntry(EDBConstants.MODEL_OID, "test");
object.putEDBObjectEntry(EDBConstants.MODEL_VERSION, Integer.valueOf(1));
object.putEDBObjectEntry("id", "test");
object.putEDBObjectEntry("booleanByGet", true);
object.putEDBObjectEntry("booleanByIs", true);
object.putEDBObjectEntry("wrappedChar", Character.MAX_VALUE);
object.putEDBObjectEntry("wrappedShort", Short.MAX_VALUE);
object.putEDBObjectEntry("wrappedInt", Integer.MAX_VALUE);
object.putEDBObjectEntry("wrappedLong", Long.MAX_VALUE);
object.putEDBObjectEntry("wrappedFloat", Float.MAX_VALUE);
object.putEDBObjectEntry("wrappedDouble", Double.MAX_VALUE);
WrappedPropertiesModel model = converter.convertEDBObjectToModel(WrappedPropertiesModel.class, object);
assertThat(model.getId(), is("test"));
assertThat(model.getBooleanByGet(), is(true));
assertThat(model.isBooleanByIs(), is(true));