StandardSchemaContexts implements SchemaContexts { @Override public void close() { executorKernel.close(); } StandardSchemaContexts();  StandardSchemaContexts(final Map<String, ShardingSphereSchema> schemas, final ShardingSphereSQLParserEngine sqlParserEngine, final ExecutorKernel executorKernel, 
                                  final Authentication authentication, final ConfigurationProperties props, final DatabaseType databaseType); @Override ShardingSphereSchema getDefaultSchema(); @Override void close();  }
@Test public void assertClose() { ShardingSphereSQLParserEngine sqlParserEngine = mock(ShardingSphereSQLParserEngine.class); ExecutorKernel executorKernel = mock(ExecutorKernel.class); ShardingSphereSchema schema = mock(ShardingSphereSchema.class); StandardSchemaContexts standardSchemaContexts = new StandardSchemaContexts( Collections.singletonMap("logic_db", schema), sqlParserEngine, executorKernel, new Authentication(), new ConfigurationProperties(new Properties()), mock(DatabaseType.class)); standardSchemaContexts.close(); verify(executorKernel).close(); }