public void testConsumerFailBodyHashSigningWithFormEncoding() throws Exception {
replay();
FakeOAuthRequest bodyHashPost =
new FakeOAuthRequest("POST", TEST_URL, "a=b&c=d&oauth_body_hash=hash",
OAuth.FORM_ENCODED);
FakeHttpServletRequest request = bodyHashPost
.sign(null, FakeOAuthRequest.OAuthParamLocation.URI_QUERY,
FakeOAuthRequest.BodySigning.NONE);
try {
reqHandler.getSecurityTokenFromRequest(request);
fail("Cant have body signing with form-encoded post bodies");