@Test
public void testPopulateBucketLinks() {

    buckets.forEach(b -> Assert.assertNull(b.getLink()));
    linkService.populateLinks(buckets);
    buckets.forEach(b -> Assert.assertEquals(
            "buckets/" + b.getIdentifier(), b.getLink().getUri().toString()));
}