@Test
public void exists_onNonExistingIndex_returnsFalse() throws Exception {

    JdbcIndex<?> index = new JdbcIndex<>();
    when(headTableEngine.exists(index)).thenReturn(false);
    when(historyTableEngine.exists(index)).thenReturn(false);
    assertFalse(mapper.exists(index));
}