@Test
public void testInsertUserNameInFormParamWithoutEncoding() throws IOException {
String inputBody = "jar=%2Ftmp%2FGatewayWebHdfsFuncTest%2FtestJavaMapReduceViaTempleton%2Fhadoop-examples.jar&class=org.apache.org.apache.hadoop.examples.WordCount&arg=%2Ftmp%2FGatewayWebHdfsFuncTest%2FtestJavaMapReduceViaTempleton%2Finput&arg=%2Ftmp%2FGatewayWebHdfsFuncTest%2FtestJavaMapReduceViaTempleton%2Foutput";
MockHttpServletRequest request = new MockHttpServletRequest();
request.setInputStream( new MockServletInputStream( new ByteArrayInputStream( inputBody.getBytes( "UTF-8" ) ) ) );
request.setContentType( "application/x-www-form-urlencoded" );
request.setMethod("POST");
IdentityAssertionHttpServletRequestWrapper wrapper
= new IdentityAssertionHttpServletRequestWrapper( request, "output-user" );