@Test
    void shouldExportArray() throws Exception {
        ArrayConstructor obj = new ArrayConstructor(new Foo[] {new Foo("", false, 0)});

        ConfiguratorRegistry registry = ConfiguratorRegistry.get();

        final Configurator c = registry.lookupOrFail(ArrayConstructor.class);
        final ConfigurationContext context = new ConfigurationContext(registry);
        CNode node = c.describe(obj, context);

        assertNotNull(node);
        assertInstanceOf(Mapping.class, node);
        Mapping map = (Mapping) node;
        assertEquals("[{qix=0, bar=false, foo=}]", map.get("anArray").toString());
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
test-harness/src/test/java/io/jenkins/plugins/casc/impl/configurators/DataBoundConfiguratorTest.java