@Test
public void testGetExtensionBundleById() {

    final BundleEntity entity = metadataService.getBundle("eb1");
    assertNotNull(entity);
    assertEquals("eb1", entity.getId());
    assertEquals("nifi-example-processors-nar", entity.getName());
    assertEquals("Example processors bundle", entity.getDescription());
    assertNotNull(entity.getCreated());
    assertNotNull(entity.getModified());
    assertEquals(BucketItemEntityType.BUNDLE, entity.getType());
    assertEquals("3", entity.getBucketId());
    assertEquals(BundleType.NIFI_NAR, entity.getBundleType());
    assertEquals("org.apache.nifi", entity.getGroupId());
    assertEquals("nifi-example-processors-nar", entity.getArtifactId());
}