### Question:
ProxyUriBase { public String getGadget() { return gadget; } protected  ProxyUriBase(Gadget gadget); protected  ProxyUriBase(UriStatus status, Uri origUri); protected  ProxyUriBase(UriStatus status, Integer refresh, boolean debug, boolean noCache,
      String container, String gadget); @SuppressWarnings("deprecation") // we still need to support SYND while parsing void setFromUri(Uri uri); @Override boolean equals(Object obj); @Override int hashCode(); ProxyUriBase setRewriteMimeType(String type); ProxyUriBase setSanitizeContent(boolean sanitize); ProxyUriBase setCajoleContent(boolean cajole); ProxyUriBase setGadget(String gadget); UriStatus getStatus(); Integer getRefresh(); boolean isDebug(); boolean isNoCache(); String getContainer(); String getGadget(); String getRewriteMimeType(); boolean sanitizeContent(); boolean cajoleContent(); void setExtensionParam(String key, String val); String getExtensionParam(String key); ProxyUriBase setExtensionParams(Map<String, String> extensionParams); Map<String, String> getExtensionParams(); HttpRequest makeHttpRequest(Uri targetUri); UriBuilder makeQueryParams(Integer forcedRefresh, String version); Integer translateStatusRefresh(int longVal, int originalResourceTtl);  }### Answer:
@Test public void testWithSetAuthorityAsGadgetParam() throws Exception { injectAuthorityAsGadgetParam(true); ProxyUriBase proxyUriBase = new ProxyUriBase(createGadget(null)); assertEquals(URI.getAuthority(), proxyUriBase.getGadget()); injectAuthorityAsGadgetParam(false); proxyUriBase = new ProxyUriBase(createGadget(null)); assertEquals(URI.toString(), proxyUriBase.getGadget()); }