ParameterParser { String path() { return path; } ParameterParser(QueryStringDecoder decoder, Configuration conf); boolean createParent(); EnumSet<CreateFlag> createFlag();  }
@Test public void testDecodePath() { final String ESCAPED_PATH = "/test%25+1%26%3Dtest?op=OPEN&foo=bar"; final String EXPECTED_PATH = "/test%+1&=test"; Configuration conf = new Configuration(); QueryStringDecoder decoder = new QueryStringDecoder( WebHdfsHandler.WEBHDFS_PREFIX + ESCAPED_PATH); ParameterParser testParser = new ParameterParser(decoder, conf); Assert.assertEquals(EXPECTED_PATH, testParser.path()); }