ServiceCachingPolicyBuilder { public ServiceCachingPolicyBuilder withCacheExhaustionAction(ExhaustionAction action) { checkNotNull(action); _cacheExhaustionAction = action; return this; }  static ServiceCachingPolicy getMultiThreadedClientPolicy(); ServiceCachingPolicyBuilder withMaxNumServiceInstances(int maxNumServiceInstances); ServiceCachingPolicyBuilder withMaxNumServiceInstancesPerEndPoint(int maxNumServiceInstancesPerEndPoint); ServiceCachingPolicyBuilder withMaxServiceInstanceIdleTime(int maxServiceInstanceIdleTime, TimeUnit unit); ServiceCachingPolicyBuilder withCacheExhaustionAction(ExhaustionAction action); ServiceCachingPolicy build(); static final ServiceCachingPolicy NO_CACHING; }
@Test(expected = NullPointerException.class) public void testNullExhaustionAction() { ServiceCachingPolicyBuilder builder = new ServiceCachingPolicyBuilder(); builder.withCacheExhaustionAction(null); }