@Test(expected = SchedulerConflictException.class)
public void testAddMultipleEventsConflict() throws Exception {

  for (int i = 0; i < 2; i++) {
    final RRule rrule = new RRule("FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;BYHOUR=7;BYMINUTE=30");
    final Date start = new Date(1546844400000L); // 2019-01-07T07:00:00Z
    final Date end = new Date(1570953300000L); // 2019-10-13T07:55:00Z
    final Long duration = 6900000L;
    final TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
    final String captureAgentId = "Device A";
    final Set<String> userIds = Collections.emptySet();
    final String id = "Recording" + i;
    final MediaPackage mpTemplate = generateEvent(Opt.some(id));
    final DublinCoreCatalog dublinCoreCatalog = generateEvent(captureAgentId,
      Opt.some(mpTemplate.getIdentifier().toString()), Opt.some("Test Title"), start, end);
    addDublinCore(Opt.some(mpTemplate.getIdentifier().toString()), mpTemplate, dublinCoreCatalog);
    final Map<String, String> wfProperties = this.wfProperties;
    final Map<String, String> caProperties = Collections.singletonMap("foo", "bar");
    final Opt<String> schedulingSource = Opt.none();
    final Map<String, Period> scheduled = schedSvc.addMultipleEvents(
        rrule,
        start,
        end,
        duration,
        tz,
        captureAgentId,
        userIds,
        mpTemplate,
        wfProperties,
        caProperties,
        schedulingSource
    );
  }
}