@Test
public void testGetExtensionByIdWithRestriction() {

    final ExtensionEntity extension = metadataService.getExtensionById("e2");
    assertNotNull(extension);
    assertEquals("e2", extension.getId());
    assertEquals("org.apache.nifi.ExampleProcessorRestricted", extension.getName());
    assertEquals("{ \"name\" : \"org.apache.nifi.ExampleProcessorRestricted\", \"type\" : \"PROCESSOR\" }", extension.getContent());
}