@Test
public void testGetBucketsForIds() {

    final List<BucketEntity> buckets = metadataService.getBuckets(new HashSet<>(Arrays.asList("1", "2")));
    assertNotNull(buckets);
    assertEquals(2, buckets.size());
    assertEquals("1", buckets.get(0).getId());
    assertEquals("2", buckets.get(1).getId());
}