### Question:
PentahoWebContextServletImpl extends HttpServlet { public Integer getRequireWaitTime() { Integer waitTime = this.requireWaitTime; if ( waitTime == null ) { waitTime = DEFAULT_WAIT_TIME; } return waitTime; }  void setRequireWaitTime( Integer value ); Integer getRequireWaitTime(); void setServicesRoot( String value ); String getServicesRoot(); @Override void destroy();  }### Answer:
@Test public void testDoGetDefinesRequireCfg() throws IOException { Integer waitTime = 1337; when( this.webContextServlet.getRequireWaitTime() ).thenReturn( waitTime ); String response = doGetWebContextServlet(); String expected = "var requireCfg = {" + "\n waitSeconds: " + waitTime + "," + "\n paths: {}," + "\n shim: {}," + "\n map: { \"*\": {} }," + "\n bundles: {}," + "\n config: { \"pentaho/modules\": {} }," + "\n packages: []" + "\n}"; assertTrue( response.contains( expected ) ); }