### Question:
PentahoWebContextServletImpl extends HttpServlet { String getRequirejsInitLocation() { return SERVER_ROOT + REQUIREJS_INIT_LOCATION; }  void setRequireWaitTime( Integer value ); Integer getRequireWaitTime(); void setServicesRoot( String value ); String getServicesRoot(); @Override void destroy();  }### Answer:
@Test public void testRequireJsInitScriptTag() throws IOException { String location = "/path/to/requireJsInit.js"; when( this.webContextServlet.getRequirejsInitLocation() ).thenReturn( location ); String scriptTag = "document.write(\"<script type='text/javascript' src='" + location + "'></scr\" + \"ipt>\");"; final String response = doGetWebContextServlet(); assertTrue( response.contains( scriptTag ) ); }