### Question:
LocalApiServer { void stop() { LoggingService.logDebug(MODULE_NAME, "Stopping Local api server\n"); bossGroup.shutdownGracefully(); workerGroup.shutdownGracefully(); }  void start();  }### Answer:
@Test public void testStop() { try { localApiServer.stop(); PowerMockito.mockStatic(LoggingService.class); LoggingService.logInfo(MODULE_NAME, "Start stopping Local api server\n"); PowerMockito.mockStatic(LoggingService.class); LoggingService.logInfo(MODULE_NAME, "Local api server stopped\n"); } catch (Exception e) { fail("This should not happen"); } }