SingleThreadedClientServiceCache implements ServiceCache<S> { @Override public void evict(ServiceEndPoint endPoint) { checkNotNull(endPoint); _invalidRevisions.put(endPoint, _revisionNumber.incrementAndGet()); _pool.clear(endPoint); } SingleThreadedClientServiceCache(ServiceCachingPolicy policy, ServiceFactory<S> serviceFactory, MetricRegistry metrics); @VisibleForTesting  SingleThreadedClientServiceCache(ServiceCachingPolicy policy, ServiceFactory<S> serviceFactory, ScheduledExecutorService executor,
                                     MetricRegistry metrics); ServiceHandle<S> checkOut(ServiceEndPoint endPoint); @Override void checkIn(ServiceHandle<S> handle); @Override int getNumIdleInstances(ServiceEndPoint endPoint); @Override int getNumActiveInstances(ServiceEndPoint endPoint); @Override void close(); @Override void register(ServiceEndPoint endPoint); @Override void evict(ServiceEndPoint endPoint);  }
@Test(expected = NullPointerException.class) public void testEvictNullEndPoint() { newCache().evict(null); }