@Test
public void testPopulateSnapshotLinks() {

    snapshots.forEach(s -> Assert.assertNull(s.getLink()));
    linkService.populateLinks(snapshots);
    snapshots.forEach(s -> Assert.assertEquals(
            "buckets/" + s.getBucketIdentifier() + "/flows/" + s.getFlowIdentifier() + "/versions/" + s.getVersion(), s.getLink().getUri().toString()));
}