@Test
public void testGetBucketsByName() {

    final List<BucketEntity> buckets = metadataService.getBucketsByName("Bucket 1");
    assertNotNull(buckets);
    assertEquals(1, buckets.size());
    assertEquals("Bucket 1", buckets.get(0).getName());
}