@Override
    public void checkBeforeUpdate(final LoadSingleTableStatement sqlStatement) {
        checkStorageUnits(sqlStatement);
        String defaultSchemaName = new DatabaseTypeRegistry(database.getProtocolType()).getDefaultSchemaName(database.getName());
        checkDuplicatedTables(sqlStatement, defaultSchemaName);
        checkActualTableExist(sqlStatement, defaultSchemaName);
    }
@Test
    void assertCheckWithEmptyStorageUnits() {
        when(database.getName()).thenReturn("foo_db");
        when(database.getResourceMetaData().getStorageUnits().isEmpty()).thenReturn(true);
        executor.setDatabase(database);
        LoadSingleTableStatement sqlStatement = new LoadSingleTableStatement(Collections.singleton(new SingleTableSegment("*", null, "*")));
        assertThrows(EmptyStorageUnitException.class, () -> executor.checkBeforeUpdate(sqlStatement));
    }