### Question:
Application extends SpringBootServletInitializer { @Bean public CommandLineRunner commandLineRunner(final AppService appService) { return strings -> { if (!appService.isInitialLoadOK()) { GMS_LOGGER.error("App did not start properly and probably will fail at some point. Restarting it is " + "highly advisable"); } }; }  static void main(final String[] args); @Bean CommandLineRunner commandLineRunner(final AppService appService); @Bean BCryptPasswordEncoder bCryptPasswordEncoder(); @Bean ErrorPageRegistrar errorPageRegistrar();  }### Answer:
@Test public void commandLineRunnerBeanCreationIsOK() { Application app = new Application(); assertNotNull(app.commandLineRunner(appService)); }