@Test
public void create_setsTableNamesCorreclty() throws Exception {

    JdbcIndex<?> index = new JdbcIndex<>();
    when(headTableEngine.create(index)).thenReturn(new Table("headTableName"));
    when(historyTableEngine.create(index)).thenReturn(new Table("historyTableName"));
    mapper.create(index);
    assertEquals("headTableName", index.getHeadTableName());
    assertEquals("historyTableName", index.getHistoryTableName());
}