code: public KarafFeaturesOption getDependenciesFeature() {
          if (subsystem == null) {
              return null;
          }
  
          try {
              File featuresXmlFile = new File(karafBase, "test-dependencies.xml");
              Writer wr = new OutputStreamWriter(new FileOutputStream(featuresXmlFile), "UTF-8");
              writeDependenciesFeature(wr, subsystem.getOptions(ProvisionOption.class));
              wr.close();
              String repoUrl = "file:"
                  + featuresXmlFile.toString().replaceAll("\\\\", "/").replaceAll(" ", "%20");
              return new KarafFeaturesOption(repoUrl, "test-dependencies");
          }
          catch (IOException e) {
              throw new RuntimeException(e.getMessage(), e);
          }
      }
docs: Create a feature for the test dependencies
  specified as ProvisionOption in the system
  
  @return feature option for dependencies