@Test 
public void testGetPathAndQuery() {

  assertEquals("/proxy/application_6384623_0005/static/app?foo=bar",
  ProxyUriUtils.getPathAndQuery(BuilderUtils.newApplicationId(6384623l, 5), "/static/app", 
      "?foo=bar", false));
  
  assertEquals("/proxy/application_6384623_0005/static/app?foo=bar&bad=good&proxyapproved=true",
      ProxyUriUtils.getPathAndQuery(BuilderUtils.newApplicationId(6384623l, 5), "/static/app", 
          "foo=bar&bad=good", true));
}