AbstractTableEngine extends JdbcService implements TableEngine, OperationExecutor { @Override public boolean exists(JdbcIndex<?> index) { if (registry.containsKey(index)) { return true; } String tableName = getTableNameTranslator().translate(index); return count("`INFORMATION_SCHEMA`.`TABLES`", "TABLE_SCHEMA = 'PUBLIC' AND TABLE_NAME = ?", tableName) > 0; } protected  AbstractTableEngine(DataSource dataSource, TypeMap typeMap, NameTranslator<Index<?>> tableNameTranslator,
            NameTranslator<IndexField<?>> columnNameTranslator); @Override boolean exists(JdbcIndex<?> index); @Override Table get(JdbcIndex<?> index); @Override Table create(JdbcIndex<?> index); @Override void drop(JdbcIndex<?> index); @Override void execute(Operation operation); @Override void execute(InsertOperation operation); @Override void execute(UpdateOperation operation); @Override void execute(DeleteOperation operation); TypeMap getTypeMap(); void setTypeMap(TypeMap typeMap); NameTranslator<Index<?>> getTableNameTranslator(); void setTableNameTranslator(NameTranslator<Index<?>> tableNameTranslator); NameTranslator<IndexField<?>> getColumnNameTranslator(); void setColumnNameTranslator(NameTranslator<IndexField<?>> columnNameTranslator);  }
@Test public void exists_onNonExistingIndex_returnsFalse() throws Exception { assertFalse(engine.exists(testIndex)); }