### Question:
Application extends SpringBootServletInitializer { @Bean public BCryptPasswordEncoder bCryptPasswordEncoder() { return new BCryptPasswordEncoder(); }  static void main(final String[] args); @Bean CommandLineRunner commandLineRunner(final AppService appService); @Bean BCryptPasswordEncoder bCryptPasswordEncoder(); @Bean ErrorPageRegistrar errorPageRegistrar();  }### Answer:
@Test public void bCryptPasswordEncoderTest() { Application app = new Application(); assertNotNull(app.bCryptPasswordEncoder()); }