@Test
public void verifySync()
{

    accumulator.partitionEvents( createEvents( 5 ), ImportStrategy.SYNC, new ArrayMap<>() );
    assertAccumulator( 5, 0, 0 );
    reset();
    final List<Event> events1 = createEvents( 3 );
    events1.get( 0 ).setDeleted( true );
    events1.get( 1 ).setDeleted( true );
    accumulator.partitionEvents( events1, ImportStrategy.SYNC, new ArrayMap<>() );
    assertAccumulator( 1, 0, 2 );
    reset();
    final List<Event> events2 = createEvents( 10 );
    events2.get( 0 ).setDeleted( true );
    events2.get( 1 ).setDeleted( true );
    accumulator.partitionEvents( events2, ImportStrategy.SYNC, createProgramStageInstances(
        events2.get( 5 ).getEvent(), events2.get( 6 ).getEvent(), events2.get( 7 ).getEvent() ) );
    assertAccumulator( 5, 3, 2 );
}