@Test
public void wrappedPropertyConversion_toEDBObject_works() {

    WrappedPropertiesModel model = new WrappedPropertiesModel();
    model.setId("test");
    model.setBooleanByGet(true);
    model.setBooleanByIs(true);
    model.setWrappedChar(Character.MAX_VALUE);
    model.setWrappedDouble(Double.MAX_VALUE);
    model.setWrappedFloat(Float.MAX_VALUE);
    model.setWrappedInt(Integer.MAX_VALUE);
    model.setWrappedLong(Long.MAX_VALUE);
    model.setWrappedShort(Short.MAX_VALUE);
    ConnectorInformation id = getTestConnectorInformation();
    List<EDBObject> objects = converter.convertModelToEDBObject(model, id);
    EDBObject object = objects.get(0);
    // check entry types
    assertThat(object.get("booleanByGet").getType(), is(Boolean.class.getName()));
    assertThat(object.get("booleanByIs").getType(), is(Boolean.class.getName()));
    assertThat(object.get("wrappedChar").getType(), is(Character.class.getName()));
    assertThat(object.get("wrappedShort").getType(), is(Short.class.getName()));
    assertThat(object.get("wrappedInt").getType(), is(Integer.class.getName()));
    assertThat(object.get("wrappedLong").getType(), is(Long.class.getName()));
    assertThat(object.get("wrappedFloat").getType(), is(Float.class.getName()));
    assertThat(object.get("wrappedDouble").getType(), is(Double.class.getName()));
    // check values
    assertThat(object.getBoolean("booleanByGet"), is(true));
    assertThat(object.getBoolean("booleanByIs"), is(true));
    assertThat(object.getChar("wrappedChar"), is(Character.MAX_VALUE));
    assertThat(object.getShort("wrappedShort"), is(Short.MAX_VALUE));
    assertThat(object.getInteger("wrappedInt"), is(Integer.MAX_VALUE));
    assertThat(object.getLong("wrappedLong"), is(Long.MAX_VALUE));
    assertThat(object.getFloat("wrappedFloat"), is(Float.MAX_VALUE));
    assertThat(object.getDouble("wrappedDouble"), is(Double.MAX_VALUE));
}