EventGeometryPreProcessor implements Processor { @Override public void process( Event event, WorkContext ctx ) { if ( event.getGeometry() != null ) { event.getGeometry().setSRID( GeoUtils.SRID ); } }  @Override void process( Event event, WorkContext ctx );  }
@Test public void verifyEventGeometryGetCorrectSRID() throws IOException { Event event = new Event(); event.setGeometry( GeoUtils.getGeoJsonPoint( 20.0, 30.0 ) ); event.getGeometry().setSRID( 0 ); subject.process( event, WorkContext.builder().build() ); assertThat( event.getGeometry().getSRID(), is( GeoUtils.SRID ) ); }