### Question:
WFSTransformer extends DefaultTransformer { public void transform(long[] ids, TimeSpan timeSpan, GeographicPosition[] pos, Color[] color, int zOrder, Collection<? super Geometry> geometries) { PointGeometry.Builder<GeographicPosition> pointBuilder = new PointGeometry.Builder<GeographicPosition>(); final float size = 3f; Constraints constraints = new Constraints(TimeConstraint.getTimeConstraint(timeSpan)); for (int index = 0; index < ids.length; ++index) { pointBuilder.setPosition(pos[index]); pointBuilder.setDataModelId(ids[index]); PointRenderProperties props = new DefaultPointRenderProperties(zOrder, true, true, false); props.setSize(size); props.setColor(color[index]); geometries.add(new PointGeometry(pointBuilder, props, constraints)); } } WFSTransformer(Toolbox toolbox); protected  WFSTransformer(DataRegistry dataRegistry, EventManager eventManager); @Override void close(); void transform(long[] ids, TimeSpan timeSpan, GeographicPosition[] pos, Color[] color, int zOrder,
            Collection<? super Geometry> geometries);  }### Answer:
@Test public void testTransform() { final double lat1 = 24.4f; final double lon1 = 10.1f; final double lat2 = 25.2f; final double lon2 = 11.0f; GeographicPosition[] positions = { new GeographicPosition(LatLonAlt.createFromDegrees(lat1, lon1)), new GeographicPosition(LatLonAlt.createFromDegrees(lat2, lon2)), }; Color[] colors = { Color.BLUE, Color.green, }; WFSTransformer transformer = new WFSTransformer(getTestToolbox()); Collection<Geometry> geometries = new ArrayList<>(); int zOrder = 0; transformer.transform(new long[] { 1L, 2L }, TimeSpan.ZERO, positions, colors, zOrder, geometries); assertEquals(2, geometries.size()); boolean found1 = false; boolean found2 = false; for (Geometry geom : geometries) { PointGeometry ptGeom = (PointGeometry)geom; LatLonAlt lla = ((GeographicPosition)ptGeom.getPosition()).getLatLonAlt(); if (lla.getLatD() == lat1 && lla.getLonD() == lon1 && ptGeom.getRenderProperties().getColor().equals(Color.BLUE)) { found1 = true; } else if (lla.getLatD() == lat2 && lla.getLonD() == lon2 && ptGeom.getRenderProperties().getColor().equals(Color.GREEN)) { found2 = true; } } assertTrue(found1 && found2); }