AlertPolicyManager { public long querySuspendMilli(AlertEntity alert) { return TimeUnit.MINUTES.toMillis(consoleConfig.getAlertSystemSuspendMinute()); }  @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 querySuspendMinute() throws Exception { long minute = policyManager.querySuspendMilli(alert); long expect = TimeUnit.MINUTES.toMillis(consoleConfig.getAlertSystemSuspendMinute()); Assert.assertEquals(expect, minute); }