@Test
public void testCreateControllerServiceWhenExists() {

    final org.apache.nifi.registry.flow.Bundle bundle = getRequestBundle(systemBundle);
    final FDControllerService controllerService = extensionManager.createControllerService(sslContextService.getType(), bundle);
    assertNotNull(controllerService);
    assertNotNull(controllerService.getComponentConfiguration());
    assertNotNull(controllerService.getComponentDefinition());
    assertEquals(sslContextService.getType(), controllerService.getComponentDefinition().getType());
    assertEquals(sslContextService.getGroup(), controllerService.getComponentDefinition().getGroup());
    assertEquals(sslContextService.getArtifact(), controllerService.getComponentDefinition().getArtifact());
    assertEquals(sslContextService.getVersion(), controllerService.getComponentDefinition().getVersion());
}