@Test
public void primitivePropertyConversion_toModel_works() {

    EDBObject object = new EDBObject("test");
    object.putEDBObjectEntry(EDBConstants.MODEL_TYPE, PrimitivePropertiesModel.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("primitiveChar", Character.MAX_VALUE);
    object.putEDBObjectEntry("primitiveShort", Short.MAX_VALUE);
    object.putEDBObjectEntry("primitiveInt", Integer.MAX_VALUE);
    object.putEDBObjectEntry("primitiveLong", Long.MAX_VALUE);
    object.putEDBObjectEntry("primitiveFloat", Float.MAX_VALUE);
    object.putEDBObjectEntry("primitiveDouble", Double.MAX_VALUE);
    PrimitivePropertiesModel model = converter.convertEDBObjectToModel(PrimitivePropertiesModel.class, object);
    assertThat(model.getId(), is("test"));
    assertThat(model.getBooleanByGet(), is(true));
    assertThat(model.isBooleanByIs(), is(true));
    assertThat(model.getPrimitiveChar(), is(Character.MAX_VALUE));
    assertThat(model.getPrimitiveShort(), is(Short.MAX_VALUE));
    assertThat(model.getPrimitiveInt(), is(Integer.MAX_VALUE));
    assertThat(model.getPrimitiveLong(), is(Long.MAX_VALUE));
    assertThat(model.getPrimitiveFloat(), is(Float.MAX_VALUE));
    assertThat(model.getPrimitiveDouble(), is(Double.MAX_VALUE));
}