}
public void testGetRequestURL() throws Exception
{
ServletRunner sr = new ServletRunner();
ServletUnitClient sc = sr.newClient();
WebRequest request = new GetMethodWebRequest( "http://test.meterware.com/myServlet" );
request.setParameter( "color", "red" );
InvocationContext ic = sc.newInvocation( request );
String url = OAuth2Servlet.getRequestURL(ic.getRequest());
assertEquals("URL check", "http://test.meterware.com/myServlet?color=red", url);
}