InstanceConfigAuditUtil implements InitializingBean { public boolean audit(String appId, String clusterName, String dataCenter, String ip, String configAppId, String configClusterName, String configNamespace, String releaseKey) { return this.audits.offer(new InstanceConfigAuditModel(appId, clusterName, dataCenter, ip, configAppId, configClusterName, configNamespace, releaseKey)); } InstanceConfigAuditUtil(final InstanceService instanceService); boolean audit(String appId, String clusterName, String dataCenter, String
      ip, String configAppId, String configClusterName, String configNamespace, String releaseKey); @Override void afterPropertiesSet();  }
@Test public void testAudit() throws Exception { boolean result = instanceConfigAuditUtil.audit(someAppId, someClusterName, someDataCenter, someIp, someConfigAppId, someConfigClusterName, someConfigNamespace, someReleaseKey); InstanceConfigAuditUtil.InstanceConfigAuditModel audit = audits.poll(); assertTrue(result); assertTrue(Objects.equals(someAuditModel, audit)); }