@Test
public void load_works() throws Exception {

    Method loadIndex = JdbcIndexEngine.class.getDeclaredMethod("load", String.class);
    boolean accessibleFlag = loadIndex.isAccessible();
    loadIndex.setAccessible(true);
    indexEngine.createIndex(TestModel.class);
    Index index = (Index) loadIndex.invoke(indexEngine, "org.openengsb.core.edbi.models.TestModel");
    assertEquals("org.openengsb.core.edbi.models.TestModel", index.getName());
    assertEquals(TestModel.class, index.getModelClass());
    assertEquals("INDEX_HEAD", index.getHeadTableName());
    assertEquals("INDEX_HISTORY", index.getHistoryTableName());
    loadIndex.setAccessible(accessibleFlag);
}