public void testGetCollections() throws Exception {
    final String DEFAULT_COLLECTION_OWNER =
        "/principals/__uids__/" + URLEncoder.encode(DavTestParams.USERNAME) + "/";

    CardDavCollection collection = cardDavStore.getCollections().get(0);

    assertEquals(
        "Default addressbook collection must be owned by " + DavTestParams.USERNAME,
        collection.getOwnerHref().get(),
        DEFAULT_COLLECTION_OWNER);
  }
 public void testDavCurrentUserPrincipal() throws Exception {
   Optional<String> currentUserPrincipal = cardDavStore.getCurrentUserPrincipal();
   assertTrue("DAV:current-user-principal should be something.", currentUserPrincipal.isPresent());
 }