@Test
public void testCreateProcessorsWhenExists() {

    final org.apache.nifi.registry.flow.Bundle bundle = getRequestBundle(httpBundle);
    final FDProcessor processor = extensionManager.createProcessor(invokeHttpProcessor.getType(), bundle);
    assertNotNull(processor);
    assertNotNull(processor.getComponentConfiguration());
    assertEquals(invokeHttpProcessor.getType(), processor.getComponentConfiguration().getType());
    assertEquals(bundle.getGroup(), processor.getComponentConfiguration().getBundle().getGroup());
    assertEquals(bundle.getArtifact(), processor.getComponentConfiguration().getBundle().getArtifact());
    assertEquals(bundle.getVersion(), processor.getComponentConfiguration().getBundle().getVersion());
    assertNotNull(processor.getComponentDefinition());
    assertEquals(invokeHttpProcessor.getType(), processor.getComponentDefinition().getType());
    assertEquals(invokeHttpProcessor.getGroup(), processor.getComponentDefinition().getGroup());
    assertEquals(invokeHttpProcessor.getArtifact(), processor.getComponentDefinition().getArtifact());
    assertEquals(invokeHttpProcessor.getVersion(), processor.getComponentDefinition().getVersion());
}