### Question:
UmaSharingService { public Set<Share> listShares() { return new HashSet<>(shares.values()); } UmaSharingService(final Handler protectionApiHandler,
                             final List<ShareTemplate> templates,
                             final URI authorizationServer,
                             final String clientId,
                             final String clientSecret); Promise<Share, UmaException> createShare(final Context context,
                                                    final String resourcePath,
                                                    final String pat); Share findShare(Request request); Share removeShare(String shareId); Set<Share> listShares(); URI getAuthorizationServer(); URI getTicketEndpoint(); URI getIntrospectionEndpoint(); Share getShare(final String id); String getClientId(); String getClientSecret();  }### Answer:
@Test(dependsOnMethods = "shouldCreateShare") public void shouldListSingleShare() throws Exception { assertThat(service.listShares()).hasSize(1); }