@SuppressWarnings("unchecked")
public void testWorkRejectedListener() throws Exception {
WorkManager mgr = createMock(WorkManager.class);
mgr.schedule(isA(Work.class), isA(WorkListener.class));
expectLastCall().andThrow(new WorkRejectedException());
replay(mgr);
Jsr237WorkScheduler scheduler = new Jsr237WorkScheduler(mgr);
Work work = createMock(Work.class);
NotificationListener<Runnable> listener = createMock(NotificationListener.class);
listener.workRejected(isA(Runnable.class));