@Test
public void shouldAddUserIfAuthTypeIsSimple() throws Exception {

  ViewContext context = createNiceMock(ViewContext.class);
  expect(context.getUsername()).andReturn("admin").anyTimes();
  ProxyHelper helper = new ProxyHelper(context);
  MultivaluedMap<String, String> map = new MultivaluedHashMap<>();
  replay(context);
  assertEquals("http://abc.com/test/abcd?user.name=admin", helper.getProxyUrl("http://abc.com", "test/abcd", map, "simple"));
  assertEquals("http://abc.com/test/abcd?user.name=admin", helper.getProxyUrl("http://abc.com", "test/abcd", map, null));
}