@Override
    public void close() throws SQLException {
        for (StorageUnit each : contextManager.getStorageUnits(databaseName).values()) {
            close(each.getDataSource());
        }
        contextManager.close();
    }
@Test
    void assertClose() throws Exception {
        try (HikariDataSource dataSource = createHikariDataSource()) {
            ShardingSphereDataSource actual = createShardingSphereDataSource(dataSource);
            actual.close();
            Map<StorageNode, DataSource> dataSourceMap = getContextManager(actual).getMetaDataContexts().getMetaData()
                    .getDatabase(DefaultDatabase.LOGIC_NAME).getResourceMetaData().getDataSources();
            assertTrue(((HikariDataSource) dataSourceMap.get(new StorageNode("ds"))).isClosed());
        }
    }