@Test
public void testSimpleModelToEDBObjectConversion_shouldWork() throws Exception {

    TestModel model = new TestModel();
    model.setId("test");
    Date date = new Date();
    model.setDate(date);
    model.setEnumeration(ENUM.A);
    model.setName("testobject");
    model.setCheck(false);
    model.setCheck2(true);
    model.setCheck3(false);
    ConnectorInformation id = getTestConnectorInformation();
    List<EDBObject> objects = converter.convertModelToEDBObject(model, id);
    EDBObject object = objects.get(0);
    assertThat(object.getString("connectorId"), is("testconnector"));
    assertThat(object.getString("id"), is("test"));
    assertThat(object.getString("oid"), is(ModelWrapper.wrap(model).getCompleteModelOID()));
    assertThat(object.getString("domainId"), is("testdomain"));
    assertThat(object.getString("name"), is("testobject"));
    assertThat(object.getString("instanceId"), is("testinstance"));
    assertThat(object.getObject("enumeration", ENUM.class), is(ENUM.A));
    assertThat(object.getObject("date", Date.class), is(date));
    assertThat(object.getObject("check", Boolean.class), is(false));
    assertThat(object.getObject("check2", Boolean.class), is(true));
    assertThat(object.getObject("check3", Boolean.class), is(false));
    assertThat(object.getString(EDBConstants.MODEL_TYPE), is(TestModel.class.getName()));
}