LinkFactory factory = new LinkFactoryImpl(request, response, invocationMap, null, optimizer, queue,
securityManager, contextPathEncoder, collector);
Link link = factory.createComponentEventLink(primaryPage, "gnip.gnop", "myevent", true, 3, 5, 9);
assertEquals(link.toURI(), encodedURL);
verify();
assertEquals(link.getParameterValue(InternalConstants.CONTAINER_PAGE_NAME), "blocks/appdisplay");
assertEquals(link.getParameterValue(InternalConstants.PAGE_CONTEXT_NAME), "x/y");