@Test
public void testDeleteSystemSelector() {

    List<SystemSelector> systemSelectors = CollectionsExt.merge(
            SchedulerGenerator.shouldSystemSelectors().toList(4),
            SchedulerGenerator.mustSystemSelectors().toList(3)
    );
    SchedulerStore schedulerStore = createSchedulerStore();
    systemSelectors.forEach(systemSelector -> schedulerStore.storeSystemSelector(systemSelector).await());
    assertThat(schedulerStore.retrieveSystemSelectors().toList().toBlocking().first()).hasSize(7);
    String idToDelete = systemSelectors.get(0).getId();
    schedulerStore.deleteSystemSelector(idToDelete).await();
    assertThat(schedulerStore.retrieveSystemSelectors().toList().toBlocking().first()).hasSize(6);
}