public void versionAddedWithVersioner() throws Exception {
String version = "abcdlkjwef";
Gadget gadget = mockGadget();
TestDefaultIframeUriManager manager = makeManager(false, false);
manager.setVersioner(this.mockVersioner(version, true));
Uri result = manager.makeRenderingUri(gadget);
assertNotNull(result);
UriBuilder uri = new UriBuilder(result);
assertEquals(TYPE_HTML_NUM_BASE_PARAMS + 1, uri.getQueryParameters().size());
assertEquals(version, uri.getQueryParameter(Param.VERSION.getKey()));