JobFactoryBean implements FactoryBean<Job> { @Override public Job getObject() { JobBuilder jobBuilder = new JobBuilder(); registerJobParameters(jobBuilder); registerMainComponents(jobBuilder); registerCustomListeners(jobBuilder); return jobBuilder.build(); }  @Override Job getObject(); @Override Class<Job> getObjectType(); @Override boolean isSingleton(); void setRecordReader(RecordReader recordReader); void setRecordWriter(RecordWriter recordWriter); void setRecordProcessors(List<RecordProcessor<?, ?>> recordProcessors); void setJobListener(JobListener jobListener); void setBatchListener(BatchListener batchListener); void setRecordReaderListener(RecordReaderListener recordReaderListener); void setRecordWriterListener(RecordWriterListener recordWriterListener); void setPipelineListener(PipelineListener pipelineListener); void setName(String name); void setErrorThreshold(long errorThreshold); void setBatchSize(int batchSize); void setEnableJmx(boolean enableJmx); void setEnableBatchScanning(boolean enableBatchScanning);  }
@Test public void testGetObject() { Job job = jobFactoryBean.getObject(); assertThat(job).isNotNull(); }