@Test
public void failOnEventWithGeometryAndProgramStageWithNoGeometry()
{

    event.setGeometry( createRandomPoint() );
    ProgramStage programStage = createProgramStage();
    programStage.setFeatureType( FeatureType.NONE );
    when( workContext.getProgramStage( programStageIdScheme, event.getProgramStage() ) ).thenReturn( programStage );
    ImportSummary importSummary = rule.check( new ImmutableEvent( event ), workContext );
    assertHasError( importSummary, event,
        "Geometry (Point) does not conform to the feature type (None) specified for the program stage: "
            + programStage.getUid() );
}