### Question:
CredentialsCacheBean { @GET @Path("/flushAll") @JmxManaged public String flushAll() { try { authManager.flushCache(); if (!cachedDatawaveUserServiceInstance.isUnsatisfied()) { cachedDatawaveUserServiceInstance.get().evictAll(); } return "All credentials caches cleared."; } catch (Exception e) { GenericResponse<String> response = new GenericResponse<>(); response.addException(new QueryException(UNKNOWN_SERVER_ERROR, e)); throw new DatawaveWebApplicationException(e, response); } }  @GET @Path("/flushAll") @JmxManaged String flushAll(); @GET @Path("/{dn}/evict") @Produces({"text/plain"}) @JmxManaged String evict(@PathParam("dn") String dn); @GET @Path("/listDNs") @Produces({"text/plain", "application/xml", "text/xml", "application/json", "text/html"}) @JmxManaged DnList listDNs(@QueryParam("localOnly") boolean localOnly); @GET @Path("/listMatching") @Produces({"text/plain", "application/xml", "text/xml", "application/json", "text/html"}) @JmxManaged DnList listDNsMatching(@QueryParam("substring") final String substr); @GET @Path("/{dn}/list") @Produces({"text/plain", "application/xml", "text/xml", "application/json", "text/html"}) @JmxManaged DatawaveUser list(@PathParam("dn") String dn); @SuppressWarnings("unused") @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) // transactions not supported directly by this bean void onConfigurationUpdate(@Observes ConfigurationEvent event); @SuppressWarnings("unused") @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) void onRefreshComplete(@Observes RefreshLifecycle refreshLifecycle); @GET @Path("/listAccumuloAuths") @Produces({"text/plain", "application/json"}) @JmxManaged Set<String> getAccumuloUserAuths(); @GET @Path("/reloadAccumuloAuths") @Produces({"application/xml", "text/xml", "application/json"}) GenericResponse<String> reloadAccumuloAuthorizations();  }### Answer:
@Test public void testFlushAll() { assertEquals(3, cache.size()); ccb.flushAll(); assertEquals(0, cache.size()); }