String decodedUri; try { decodedUri = getReverseProxyDecoded(encodedUri); } catch (Exception e) {
@Test public void testReverseProxyEncoding() { String encoded = UriUtilsExtended.getValueEncoded(SAMPLE_URL); assertNotEquals(SAMPLE_URL, encoded); String decoded = UriUtilsExtended.getReverseProxyDecoded(encoded); assertNotEquals(encoded, decoded); assertEquals(SAMPLE_URL, decoded); }