{
ServletRunner sr = new ServletRunner();
ServletUnitClient sc = sr.newClient();
WebRequest request = new PostMethodWebRequest( "https://test.meterware.com/myServlet" );
InvocationContext ic = sc.newInvocation( request );
OAuth2ProblemException problem = new OAuth2ProblemException(OAuth2.ErrorCode.UNSUPPORTED_RESPONSE_TYPE);
problem.setParameter(OAuth2ProblemException.HTTP_STATUS_CODE,new Integer(302));
//problem.getParameters().put(OAuth2.REDIRECT_URI,"https://client.example.com/cb");
problem.setParameter(OAuth2.REDIRECT_URI,"https://client.example.com/cb");