### Question:
AutowiringSpringBeanJobFactory extends SpringBeanJobFactory implements
                                                                               ApplicationContextAware { @Override public void setApplicationContext(final ApplicationContext context) { beanFactory = context.getAutowireCapableBeanFactory(); }  @Override void setApplicationContext(final ApplicationContext context);  }### Answer:
@Test public void testSetApplicationContext() throws Exception { JobDetailImpl jobDetail = new JobDetailImpl(); jobDetail.setJobClass(MockJob.class); TriggerFiredBundle bundle = new TriggerFiredBundle(jobDetail, Mockito.mock(OperableTrigger.class), new BaseCalendar(), true, new Date(), new Date(), new Date(), new Date()); assertNotNull(factory.createJobInstance(bundle)); }