### Question:
MysqlService { public List<SlotNotice> querySlotNoticeAtAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount) { return slotNoticeMapper.filterAggregate(criteria.isFilterExpire(), criteria.getDecisions(), criteria.getStrategies(), criteria.getCheckTypes(), criteria.getSceneTypes(), criteria.getFromTime(), criteria.getEndTime(), criteria.getKey(), criteria.getTest(), offset, rowCount); }  void trunkSave(Trunk trunk); List<Trunk> list(); void batchDelete(List<String> trunks); Notice getNotice(); int insertPorter(Porter porter); Porter queryPorter(int id); List<Porter> queryPorters(); void deletePorter(int id); LogQuery queryLogQuery(int id); List<LogQuery> queryLogQuery(); int insertLogQuery(LogQuery query); void updateLogQuery(LogQuery query); void deleteLogQuery(LogQuery query); void deleteLogQuery(int id); List<Integer> queryLogQueryIdsByNonSuccessStatus(); List<Integer> queryLogQueryIdsBySuccessStatus(); List<SlotNotice> querySlotNotice(); Map<Long, Integer> selectStaticCount(Long startTime, Long endTime, Integer test); List<SlotNotice> filterSlotNoticeByExpireAndDecision(Long expire, String decision); List<StrategyCust> queryStrategyCust(); StrategyCust queryStrategyCust(int id); List<String> selectStrategyCustNameByTags(List<String> tags); List<SlotNotice> querySlotNoticeAtAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount); List<SlotNotice> querySlotNoticeAtNonAggregate(SlotNoticeService.Criteria criteria, int offset, Integer rowCount); int selectSlotNoticeCountAtAggregate(SlotNoticeService.Criteria criteria); int selectSlotNoticeCountAtNonAggregate(SlotNoticeService.Criteria criteria); List<Long> SelectSlotNoticeIdByExpireAndDecision(); void addSlotNotice(final List<SlotNotice> notices); void addSlotNotice(final SlotNotice notice); void deleteNotice(final String key, final Long fromtime, final Long endtime);  }### Answer:
@Test public void testMySql_filterAggregated() { SqlSessionFactory sqlSessionFactory = (SqlSessionFactory) applicationContext.getBean("sqlSessionFactory"); SqlSession sqlSession = SqlSessionUtils.getSqlSession(sqlSessionFactory); SlotNoticeService.Criteria criteria = new SlotNoticeService.Criteria(); criteria.setTest(1L); criteria.setCheckTypes(Arrays.asList(new String[]{"IP"})); criteria.setKey("172.16.10.110"); criteria.setStrategies(Arrays.asList(new String[]{"IP相同UA大量请求单个页面"})); List<SlotNotice> slotNotices = mysqlService.querySlotNoticeAtAggregate(criteria, 20, 20); assertThat(slotNotices.size()).isNotEqualTo(0); }