    @Test
    public void arrayDefaultsToNonUnique() {

        JCodeModel codeModel = new JCodeModel();
        JPackage jpackage = codeModel._package(getClass().getPackage().getName());

        ObjectMapper mapper = new ObjectMapper();

        ObjectNode itemsNode = mapper.createObjectNode();
        itemsNode.put("type", "boolean");

        ObjectNode propertyNode = mapper.createObjectNode();
        propertyNode.set("uniqueItems", BooleanNode.FALSE);
        propertyNode.set("items", itemsNode);

        Schema schema = mock(Schema.class);
        when(schema.getId()).thenReturn(URI.create("http://example/defaultArray"));
        when(schema.deriveChildSchema(any())).thenReturn(schema);

        JClass propertyType = rule.apply("fooBars", propertyNode, null, jpackage, schema);

        assertThat(propertyType.erasure(), is(codeModel.ref(List.class)));
    }