AcsRequestContextHolder implements ApplicationContextAware { public static AcsRequestContext getAcsRequestContext() { return ACS_REQUEST_CONTEXT_STORE.get(); } private  AcsRequestContextHolder(); static AcsRequestContext getAcsRequestContext(); @Override void setApplicationContext(final ApplicationContext applicationContext);  }
@Test public void testAcsRequestContextSet() { AcsRequestContext acsRequestContext = AcsRequestContextHolder.getAcsRequestContext(); ZoneEntity zoneEntity = (ZoneEntity) acsRequestContext.get(ACSRequestContextAttribute.ZONE_ENTITY); Assert.assertEquals(zoneEntity.getName(), ZONE_NAME + ZONE_NAME_SUFFIX); Assert.assertEquals(zoneEntity.getSubdomain(), ZONE_NAME + ZONE_SUBDOMAIN_SUFFIX); }