@Test
public void testSimpleArrayComplexProperty() throws Exception {

    // Simple arrays (arrays of numbers, Strings, booleans (not objects)
    Map<String, Object> json = loadJSONResource("featureCollectionSimpleArray.json");
    CoordinateReferenceSystem crs84 = CRS.decode("EPSG:4326", true);
    SimpleFeatureType schema = GeoJSONSchemaDetector.getSchema(json, crs84);
    SimpleFeatureCollection fc = GeoJSONReader2.toFeatureCollection(json, schema);
    try (SimpleFeatureIterator it = fc.features()) {
        assertTrue(it.hasNext()); 
        SimpleFeature f1 = it.next();
        assertFalse(it.hasNext());
        assertNotNull(f1);
        assertEquals("ABC_123", f1.getID());
        assertEquals("bar", f1.getAttribute("foo"));
        List<Integer> expectedSimpleArray = Arrays.asList(1, 2, 3);
        assertThat(expectedSimpleArray, Is.is(f1.getAttribute("mySimpleIntArray")));
        Geometry expectedGeometry = new WKTReader().read("POINT (21.3743445 61.3764872)");
        assertEquals(expectedGeometry, f1.getDefaultGeometry());
    }
}