String appPackage = "nu.localhost.testsite";
String appName = "test";
PageTester tester = new PageTester(appPackage, appName, "src/test/resources/webapp");
EasyMock.replay(MockFactory.getInstance().getMockedObjects());
TestableResponse resp = tester.renderPageAndReturnResponse("SecuredMethod");
EasyMock.verify(MockFactory.getInstance().getMockedObjects());
assertEquals(500,resp.getStatus()); //err not allowed!
// login..! (wrong role)
SecurityContextHolder.getContext().setAuthentication(new TestingAuthenticationToken("user1","user1","ROLE_DENIED"));