assertBBox(f, new ReferencedEnvelope(14.05, 17.24, 46.46, 28.42, DefaultGeographicCRS.WGS84));
}
private void assertBBox(Feature f, ReferencedEnvelope... envelopes) throws Exception {
PropertyName bbox = ff.property("gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox", MetaDataDescriptor.NAMESPACES);
Property p = (Property) bbox.evaluate(f);
MultiPolygon geometry = (MultiPolygon) p.getValue();
List<ReferencedEnvelope> featureEnvelopes = (List<ReferencedEnvelope>) p.getUserData().get(GenericRecordBuilder.ORIGINAL_BBOXES);
ReferencedEnvelope total = null;
for (int i = 0; i < envelopes.length; i++) {
assertEquals(envelopes[i], featureEnvelopes.get(i));