@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));
    assertThat(model.getWrappedChar(), is(Character.MAX_VALUE));
    assertThat(model.getWrappedShort(), is(Short.MAX_VALUE));
    assertThat(model.getWrappedInt(), is(Integer.MAX_VALUE));
    assertThat(model.getWrappedLong(), is(Long.MAX_VALUE));
    assertThat(model.getWrappedFloat(), is(Float.MAX_VALUE));
    assertThat(model.getWrappedDouble(), is(Double.MAX_VALUE));
}