@Test
public void testDocsWithControllerService() throws IOException {

    final ExtensionManifest extensionManifest = parse("src/test/resources/descriptors/extension-manifest-dbcp-service-nar.xml");
    assertNotNull(extensionManifest);
    assertEquals("1.10.0-SNAPSHOT", extensionManifest.getSystemApiVersion());
    final List<Extension> extensions = extensionManifest.getExtensions();
    assertEquals(2, extensions.size());
    final Extension dbcpPoolExtension = extensions.stream()
            .filter(e -> e.getName().equals("org.apache.nifi.dbcp.DBCPConnectionPool"))
            .findFirst()
            .orElse(null);
    assertNotNull(dbcpPoolExtension);
    assertEquals(ExtensionType.CONTROLLER_SERVICE, dbcpPoolExtension.getType());
    assertEquals("Provides Database Connection Pooling Service. Connections can be asked from pool and returned\n" +
            "                after usage.", dbcpPoolExtension.getDescription().trim());
    assertEquals(6, dbcpPoolExtension.getTags().size());
    assertEquals(1, dbcpPoolExtension.getProvidedServiceAPIs().size());
    final ProvidedServiceAPI providedServiceApi = dbcpPoolExtension.getProvidedServiceAPIs().iterator().next();
    assertNotNull(providedServiceApi);
    assertEquals("org.apache.nifi.dbcp.DBCPService", providedServiceApi.getClassName());
    assertEquals("org.apache.nifi", providedServiceApi.getGroupId());
    assertEquals("nifi-standard-services-api-nar", providedServiceApi.getArtifactId());
    assertEquals("1.10.0-SNAPSHOT", providedServiceApi.getVersion());
}