@Test
public void testGetExtensionsByProvidedServiceApi() {

    final Set<String> bucketIds = new HashSet<>();
    bucketIds.add("1");
    bucketIds.add("2");
    bucketIds.add("3");
    final ProvidedServiceAPI serviceAPI = new ProvidedServiceAPI();
    serviceAPI.setClassName("org.apache.nifi.ExampleServiceAPI");
    serviceAPI.setGroupId("org.apache.nifi");
    serviceAPI.setArtifactId("nifi-example-service-api-nar");
    serviceAPI.setVersion("2.0.0");
    final List<ExtensionEntity> extensions = metadataService.getExtensionsByProvidedServiceApi(bucketIds, serviceAPI);
    assertEquals(1, extensions.size());
    assertEquals("e3", extensions.get(0).getId());
}