@Test
public void failOnMissingProgramStageInstance()
{

    when( workContext.getProgramStageInstanceMap() ).thenReturn( new HashMap<>() );
    ImportSummary summary = rule.check( new ImmutableEvent( event ), workContext );
    assertHasError( summary, event,
        "Event ID " + event.getEvent() + " doesn't point to valid event" );
}