JobFactoryBean implements FactoryBean<Job> { @Override public boolean isSingleton() { return true; }  @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 testIsSingleton() { assertThat(jobFactoryBean.isSingleton()).isTrue(); }