source: class WebConfigurerTest {
  
      private WebConfigurer webConfigurer;
      private MockServletContext servletContext;
      private MockEnvironment env;
      private JHipsterProperties props;
  
      @Test
      public void testStartUpDevServletContext() throws ServletException {
  
target:         env.setActiveProfiles(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT);
          webConfigurer.onStartup(servletContext);
  
          verify(servletContext, never()).addFilter(eq("cachingHttpHeadersFilter"), any(CachingHttpHeadersFilter.class));
          verify(servletContext).addServlet(eq("H2Console"), any(WebServlet.class));
      }
  
  }