@Test
public void failOnNullProgramStage()
{

    Program program = new Program();
    program.setUid( CodeGenerator.generateUid() );
    program.setProgramType( ProgramType.WITH_REGISTRATION );
    Map<String, Program> programMap = new HashMap<>();
    programMap.put( program.getUid(), program );
    event.setProgram( program.getUid() );
    when( workContext.getProgramsMap() ).thenReturn( programMap );
    ImportSummary summary = rule.check( new ImmutableEvent( event ), workContext );
    assertHasError( summary, event,
        "Event.programStage does not point to a valid programStage: " + event.getProgramStage() );
}