protected PageAuthorizationServiceImpl auth;
@Before
public void init() throws Exception {
auth = new PageAuthorizationServiceImpl();
auth.setMatches(new AuthMatch[] {
// matches
match("/user", grant(null, "*", null, "*")), //
match("/user", grant("baobao", null, "read,write", null)), //