@Before public void initJdbcApprovalStoreTests() { dao = new JdbcApprovalStore( jdbcTemplate, new JdbcPagingListFactory(jdbcTemplate, limitSqlAdapter), new SimpleSearchQueryConverter()); eventPublisher = TestApplicationEventPublisher.forEventClass(ApprovalModifiedEvent.class); dao.setApplicationEventPublisher(eventPublisher); addApproval("u1", "c1", "uaa.user", 6000, APPROVED); addApproval("u1", "c2", "uaa.admin", 12000, DENIED); addApproval("u2", "c1", "openid", 6000, APPROVED); }