@Test
public void primitivePropertyConversion_toEDBObject_works() {

    PrimitivePropertiesModel model = new PrimitivePropertiesModel();
    model.setId("test");
    model.setBooleanByGet(true);
    model.setBooleanByIs(true);
    model.setPrimitiveChar(Character.MAX_VALUE);
    model.setPrimitiveDouble(Double.MAX_VALUE);
    model.setPrimitiveFloat(Float.MAX_VALUE);
    model.setPrimitiveInt(Integer.MAX_VALUE);
    model.setPrimitiveLong(Long.MAX_VALUE);
    model.setPrimitiveShort(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("primitiveChar").getType(), is(Character.class.getName()));
    assertThat(object.get("primitiveShort").getType(), is(Short.class.getName()));
    assertThat(object.get("primitiveInt").getType(), is(Integer.class.getName()));
    assertThat(object.get("primitiveLong").getType(), is(Long.class.getName()));
    assertThat(object.get("primitiveFloat").getType(), is(Float.class.getName()));
    assertThat(object.get("primitiveDouble").getType(), is(Double.class.getName()));
    // check values
    assertThat(object.getBoolean("booleanByGet"), is(true));
    assertThat(object.getBoolean("booleanByIs"), is(true));
    assertThat(object.getChar("primitiveChar"), is(Character.MAX_VALUE));
    assertThat(object.getShort("primitiveShort"), is(Short.MAX_VALUE));
    assertThat(object.getInteger("primitiveInt"), is(Integer.MAX_VALUE));
    assertThat(object.getLong("primitiveLong"), is(Long.MAX_VALUE));
    assertThat(object.getFloat("primitiveFloat"), is(Float.MAX_VALUE));
    assertThat(object.getDouble("primitiveDouble"), is(Double.MAX_VALUE));
}