AlertPolicyManager { public List<AlertChannel> queryChannels(AlertEntity alert) { return channelSelector.alertChannels(alert); }  @PostConstruct void initPolicies(); List<AlertChannel> queryChannels(AlertEntity alert); long queryRecoverMilli(AlertEntity alert); long querySuspendMilli(AlertEntity alert); EmailReceiverModel queryEmailReceivers(AlertEntity alert); void markCheckInterval(ALERT_TYPE alertType, LongSupplier checkInterval); Map<EmailReceiverModel, Map<ALERT_TYPE, Set<AlertEntity>>> queryGroupedEmailReceivers(
            AlertEntityHolderManager alerts);  }
@Test public void queryChannels() throws Exception { List<AlertChannel> channels = policyManager.queryChannels(alert); List<AlertChannel> expected = Arrays.asList(AlertChannel.MAIL); Assert.assertEquals(expected, channels); }