@Test
    @ConfiguredWithCode("BackwardCompatibilityTest.yml")
    void should_accept_legacy_symbols_on_descriptors(JenkinsConfiguredWithCodeRule j) {

        final List<Node> nodes = j.jenkins.getNodes();
        System.out.println(nodes);
        assertNotNull(j.jenkins.getNode("foo"));
        assertNotNull(j.jenkins.getNode("bar"));
        assertNotNull(j.jenkins.getNode("qix"));

        final List<ObsoleteConfigurationMonitor.Error> errors =
                ObsoleteConfigurationMonitor.get().getErrors();
        String expected = format("'DumbSlave' is obsolete, please use '%s'", agentNameToCompareAgainst());
        assertEquals(expected, errors.get(0).message);
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
test-harness/src/test/java/io/jenkins/plugins/casc/BackwardCompatibilityTest.java