### Question:
CredentialsCacheBean { @GET @Path("/{dn}/list") @Produces({"text/plain", "application/xml", "text/xml", "application/json", "text/html"}) @JmxManaged public DatawaveUser list(@PathParam("dn") String dn) { DatawaveUser user; if (!cachedDatawaveUserServiceInstance.isUnsatisfied()) { user = cachedDatawaveUserServiceInstance.get().list(dn); } else { user = authManager.getCachedKeys().parallelStream() .filter(p -> p instanceof DatawavePrincipal) .flatMap(p -> ((DatawavePrincipal) p).getProxiedUsers().stream()) .filter(p -> p.getName().equals(dn)) .findFirst() .orElse(null); } return user; }  @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 testList() throws Exception { DatawaveUser u = ccb.list("user2<issuer2>"); assertNotNull(u); assertEquals("user2<issuer2>", u.getName()); }