test_class.file: gremlin-console/src/test/java/org/apache/tinkerpop/gremlin/console/groovy/plugin/DriverGremlinPluginTest.java
test_class.identifier: DriverGremlinPluginTest
test_case.body: @Test
      public void shouldConstructRemoteAcceptorWhenInConsoleEnvironment() throws Exception {
          final DriverGremlinPlugin plugin = new DriverGremlinPlugin();
          final Map<String, Object> env = new HashMap<>();
          env.put("ConsolePluginAcceptor.io", new IO());
          env.put("ConsolePluginAcceptor.shell", new Groovysh());
          final SpyPluginAcceptor spy = new SpyPluginAcceptor(() -> env);
          plugin.pluginTo(spy);
  
          assertThat(plugin.remoteAcceptor().isPresent(), is(true));
      }
test_case.class_method_signature: DriverGremlinPluginTest.shouldConstructRemoteAcceptorWhenInConsoleEnvironment()
test_case.full_signature: @Test public void shouldConstructRemoteAcceptorWhenInConsoleEnvironment()
test_case.identifier: shouldConstructRemoteAcceptorWhenInConsoleEnvironment
test_case.invocations: put put pluginTo assertThat isPresent remoteAcceptor is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldConstructRemoteAcceptorWhenInConsoleEnvironment()
focal_class.declarator: IMPORTS = new HashSet<String>() {{
          add(IMPORT_SPACE + Cluster.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + ConnectionException.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + RequestMessage.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + SerTokens.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + DriverRemoteConnection.class.getPackage().getName() + DOT_STAR);
      }}
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> IMPORTS = new HashSet<String>() {{
          add(IMPORT_SPACE + Cluster.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + ConnectionException.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + RequestMessage.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + SerTokens.class.getPackage().getName() + DOT_STAR);
          add(IMPORT_SPACE + DriverRemoteConnection.class.getPackage().getName() + DOT_STAR);
      }};
focal_class.type: Set<String>
focal_class.var_name: IMPORTS
focal_class.file: gremlin-console/src/main/java/org/apache/tinkerpop/gremlin/console/groovy/plugin/DriverGremlinPlugin.java
focal_class.identifier: DriverGremlinPlugin
focal_class.class_method_signature: DriverGremlinPlugin.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: DriverGremlinPlugin.afterPluginTo(final PluginAcceptor pluginAcceptor)
focal_class.full_signature: @Override public void afterPluginTo(final PluginAcceptor pluginAcceptor)
focal_class.identifier: afterPluginTo
focal_class.modifiers: @Override public
focal_class.parameters: (final PluginAcceptor pluginAcceptor)
focal_class.return: void
focal_class.signature: void afterPluginTo(final PluginAcceptor pluginAcceptor)
focal_class.class_method_signature: DriverGremlinPlugin.remoteAcceptor()
focal_class.full_signature: @Override public Optional<RemoteAcceptor> remoteAcceptor()
focal_class.identifier: remoteAcceptor
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Optional<RemoteAcceptor>
focal_class.signature: Optional<RemoteAcceptor> remoteAcceptor()
focal_class.superclass: extends AbstractGremlinPlugin
focal_method.body: @Override
      public Optional<RemoteAcceptor> remoteAcceptor() {
          return null == this.shell ? Optional.empty() : Optional.of(new DriverRemoteAcceptor(this.shell));
      }
focal_method.class_method_signature: DriverGremlinPlugin.remoteAcceptor()
focal_method.full_signature: @Override public Optional<RemoteAcceptor> remoteAcceptor()
focal_method.identifier: remoteAcceptor
focal_method.invocations: empty of
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Optional<RemoteAcceptor>
focal_method.signature: Optional<RemoteAcceptor> remoteAcceptor()