@Test
public void testGetAllExtensionsFilteredWithResult() {

    final Set<String> bucketIds = new HashSet<>();
    bucketIds.add("1");
    bucketIds.add("2");
    bucketIds.add("3");
    final ExtensionFilterParams filterParams = new ExtensionFilterParams.Builder()
            .extensionType(ExtensionType.CONTROLLER_SERVICE)
            .bundleType(BundleType.NIFI_NAR)
            .tag("SERVICE")
            .tag("example")
            .build();
    final List<ExtensionEntity> extensions = metadataService.getExtensions(bucketIds, filterParams);
    assertNotNull(extensions);
    assertEquals(1, extensions.size());
    final ExtensionEntity entity = extensions.get(0);
    assertEquals(ExtensionType.CONTROLLER_SERVICE.toString(), entity.getExtensionType().toString());
    assertEquals(BundleType.NIFI_NAR, entity.getBundleType());
}