String label = testCase[0];
//String realm = testCase[1];
List<OAuth2.Parameter> parameters = decodeForm(testCase[1]);
OAuth2Servlet.sendFormInJson(ic.getResponse(),parameters);
WebResponse response = ic.getServletResponse();
String expectedGrantType = testCase[2];
String expectedClientId = testCase[3];
//String expectedSecret = testCase[5];
String expectedCode = testCase[4];
String expectedRedirectURI = testCase[5];
assertEquals(label, "{"+toStringWithQuotation("grant_type")+":"+toStringWithQuotation(expectedGrantType)+","
+toStringWithQuotation("client_id")+":"+toStringWithQuotation(expectedClientId)+","
//+toStringWithQuotation("client_secret")+":"+toStringWithQuotation(expectedSecret)+","
+toStringWithQuotation("code")+":"+toStringWithQuotation(expectedCode)+","
+toStringWithQuotation("redirect_uri")+":"+toStringWithQuotation(expectedRedirectURI)+"}", response.getText());
}
}