EKBCommit commit = getTestEKBCommit().addInsert(model.getModel());
persist.commit(commit);
ModelWrapper wrapper = ModelWrapper.wrap(query.getModel(getTestModel(), getModelOid("modelmetatest/1")));
assertThat(wrapper.toOpenEngSBModelEntries(), notNullValue());
assertThat(wrapper.retrieveInternalModelId(), notNullValue());
assertThat(wrapper.retrieveInternalModelVersion(), notNullValue());
assertThat(wrapper.retrieveInternalModelTimestamp(), notNullValue());
}
@Test
public void testIfSubModelIsPersistedAlso_shouldPersistParentAndSubModel() throws Exception {