/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
siteUrl = new SiteURLImpl(new URL(siteAddress));
siteUrlWithPort = new SiteURLImpl(new URL(siteAddressWithPort));
siteMock = EasyMock.createNiceMock(Site.class);
EasyMock.expect(siteMock.getLanguage("de")).andReturn(german).anyTimes();
EasyMock.expect(siteMock.getDefaultLanguage()).andReturn(english);
EasyMock.expect(siteMock.getHostname()).andReturn(siteUrl).anyTimes();