@Test
public void testTriggerScheduler() throws SchedulerException {

  PowerMockito.suppress(PowerMockito.constructor(SchedulerManager.class));
  PowerMockito.suppress(PowerMockito.methodsDeclaredIn(SchedulerManager.class));
  scheduler = mock(Scheduler.class);
  PowerMockito.mockStatic(SchedulerManager.class);
  String[] jobs = {"shadowuser"};
  onDemandSchedulerManager = spy(OnDemandSchedulerManager.class);
  when(scheduler.checkExists((JobKey) Mockito.anyObject())).thenReturn(false);
  onDemandSchedulerManager.triggerScheduler(jobs);
  verify(onDemandSchedulerManager).scheduleOnDemand(Mockito.anyString(), Mockito.anyString());
 
}