HttpWebService extends ServletBase { protected boolean hasActionInQueryString( final HttpServletRequest request ) { String action = request.getParameter( "action" ); if ( ( "securitydetails" ).equalsIgnoreCase( action ) ) { return true; } else { return false; } } HttpWebService(); @Override Log getLogger(); String getPayloadAsString( final HttpServletRequest request ); void doGetFixMe( final HttpServletRequest request, final HttpServletResponse response ); @Override void doGet( final HttpServletRequest request, final HttpServletResponse response );  }
@Test public void testHasActionInQueryString() throws Exception { when( request.getParameter( "action" ) ).thenReturn( "securitydetails" ); assertTrue( httpWebService.hasActionInQueryString( request ) ); }