public void testGetLink()
{
Map parameters = new HashMap();
LinkFactory factory = (LinkFactory) newMock(LinkFactory.class);
ILink link = (ILink) newMock(ILink.class);
PortletHomeService phs = new PortletHomeService();
phs.setLinkFactory(factory);
factory.constructLink(phs, false, parameters, true);
setReturnValue(factory, link);
replayControls();
assertSame(link, phs.getLink(false, null));