@Test
public void declarativeAgents() throws Exception {

    PipelineMetadataService svc = new PipelineMetadataService();
    List<ExportedDescribableModel> agents = new ArrayList<>();
    agents.addAll(Arrays.asList(svc.doAgentMetadata()));
    assertFalse(agents.isEmpty());
    ExportedDescribableModel m = null;
    for (ExportedDescribableModel a : agents) {
        if (a.getType().equals(DockerPipeline.class.getName())) {
            m = a;
        }
    }
    assertNotNull(m);
    assertTrue(m.getHasSingleRequiredParameter());
    // check there are parameters present
    assertTrue(m.getParameters().size() > 0);
}