@Test
public void createIndex_works() throws Exception {

    Index<TestModel> index = indexEngine.createIndex(TestModel.class);
    assertEquals("org.openengsb.core.edbi.models.TestModel", index.getName());
    assertEquals(TestModel.class, index.getModelClass());
    assertEquals("INDEX_HEAD", index.getHeadTableName());
    assertEquals("INDEX_HISTORY", index.getHistoryTableName());
    assertEquals(3, index.getFields().size());
}