@Test
public void shouldBuildURLWithQueryParametersHavingSpecialCharacters() throws Exception {

  ViewContext context = createNiceMock(ViewContext.class);
  ProxyHelper helper = new ProxyHelper(context);
  MultivaluedMap<String, String> map = new MultivaluedHashMap<>();
  map.putSingle("data", "abcd/efgh");
  assertEquals("http://abc.com/test/abcd?data=abcd%2Fefgh", helper.getProxyUrl("http://abc.com", "test/abcd", map, "kerberos"));
  map.putSingle("data", "abcd efgh");
  assertEquals("http://abc.com/test/abcd?data=abcd+efgh", helper.getProxyUrl("http://abc.com", "test/abcd", map, "kerberos"));
}