### Question:
ZephyrCliEntryPoint implements EntryPoint { @SneakyThrows @SuppressWarnings("PMD.SystemPrintln") private void startServer() { try { LocateRegistry.createRegistry(options.getPort()); } catch (Exception ex) { } val console = new RecordingConsole(); context.register(ShellOptions.class, options); context.register(Console.class, console); val invoker = DaggerShellInjectionConfiguration.factory() .create(ClassLoader.getSystemClassLoader(), context) .createShell(); val server = DaggerServerInjectionConfiguration.factory().build(options, invoker, console).server(); context.register(Server.class, server); context.register(Invoker.class, invoker); invoker.setConsole(console); server.start(); } ZephyrCliEntryPoint(); @Override Logger getLogger(); @Override void initialize(Map<ContextEntries, Object> context); @Override void finalize(Map<ContextEntries, Object> context); @Override void start(); @Override void stop(); @Override T getService(Class<T> type); @Override boolean exports(Class<T> type); @Override void run(Map<ContextEntries, Object> ctx); @Override ShellOptions getOptions(); @Override int getPriority();  }### Answer:
@Test void ensureStartingServerWorks() { startServer(); assertTrue(server.isRunning(), "server must be running"); stopServer(); assertFalse(server.isRunning(), "server must not be running"); }
@Test void ensureInstallingKernelModuleWorks() throws InterruptedException { try { startServer(); startKernel(); install(StandardModules.YAML); restartKernel(); assertEquals(1, kernel.getKernelModules().size(), "must only have one kernel module"); } finally { stopKernel(); stopServer(); } }