// Templatized results.
Uri resultTpl = managerTpl.makeRenderingUri(gadget);
assertNotNull(resultTpl);
UriBuilder uriTpl = new UriBuilder(resultTpl);
assertEquals("", uriTpl.getScheme());
assertEquals(UNLOCKED_DOMAIN, uriTpl.getAuthority());
assertEquals(IFRAME_PATH, uriTpl.getPath());
assertEquals(SPEC_URI.toString(), uriTpl.getQueryParameter(Param.URL.getKey()));
assertEquals(CONTAINER, uriTpl.getQueryParameter(Param.CONTAINER.getKey()));
assertEquals(tplKey(Param.VIEW.getKey()), uriTpl.getQueryParameter(Param.VIEW.getKey()));
assertEquals(tplKey(Param.LANG.getKey()), uriTpl.getQueryParameter(Param.LANG.getKey()));
assertEquals(tplKey(Param.COUNTRY.getKey()), uriTpl.getQueryParameter(Param.COUNTRY.getKey()));
assertEquals(tplKey(Param.DEBUG.getKey()), uriTpl.getQueryParameter(Param.DEBUG.getKey()));
assertEquals(tplKey(Param.NO_CACHE.getKey()),
uriTpl.getQueryParameter(Param.NO_CACHE.getKey()));
assertEquals(tplKey("up_" + prefKey), uriTpl.getFragmentParameter("up_" + prefKey));
// Only the params that are needed.
assertEquals(TYPE_HTML_NUM_BASE_PARAMS, uriTpl.getQueryParameters().size());
assertEquals(1, uriTpl.getFragmentParameters().size());
assertFalse(managerTpl.tokenForRenderingCalled());
assertTrue(managerTpl.schemeCalled());
assertTrue(managerTpl.ldExclusionCalled());
assertTrue(managerTpl.addExtrasCalled());