EmbeddedScanner { public static EmbeddedScanner create(String app, String version, final LogOutput logOutput, System2 system2) { Logger logger = new LoggerAdapter(logOutput); return new EmbeddedScanner(new IsolatedLauncherFactory(logger), logger, logOutput, system2) .setGlobalProperty(InternalProperties.SCANNER_APP, app) .setGlobalProperty(InternalProperties.SCANNER_APP_VERSION, version); } EmbeddedScanner(IsolatedLauncherFactory bl, Logger logger, LogOutput logOutput, System2 system); static EmbeddedScanner create(String app, String version, final LogOutput logOutput, System2 system2); static EmbeddedScanner create(String app, String version, final LogOutput logOutput); Map<String, String> globalProperties(); EmbeddedScanner unmask(String fqcnPrefix); EmbeddedScanner mask(String fqcnPrefix); EmbeddedScanner addGlobalProperties(Map<String, String> p); EmbeddedScanner setGlobalProperty(String key, String value); String globalProperty(String key, @Nullable String defaultValue); String app(); String appVersion(); void start(); String serverVersion(); void execute(Map<String, String> taskProps);  }
@Test public void should_create() { assertThat(EmbeddedScanner.create("test", "1.0", mock(LogOutput.class))).isNotNull().isInstanceOf(EmbeddedScanner.class); }