title: Test only one job out of many spring batch
body: <p>I have two jobs. I am trying to test 1 single job. </p>
  
  <p>this is what I am trying:</p>
  
  <pre><code>@Autowired
  private JobLauncherTestUtils jobLauncherTestUtils;
  
  @Autowired
  @Qualifier("jobNumber1")
  private Job job;
  
  @Test
  public void test() {
      try {
          jobLauncherTestUtils
                  .getJobLauncher()
                  .run(job, new JobParametersBuilder()
                  .addString("--spring.batch.job.names", "jobNumber1")
                  .toJobParameters());
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>But when I see logs, it is running both jobs. How do I make it test only 1 test? Thanks</p>
  
  <p>I have also tried to add a Job in in JobLauncherTestUtils</p>
  
  <pre><code>@Bean
  public JobLauncherTestUtils jobLauncherTestUtils() throws Exception {
      return new JobLauncherTestUtils() {
          @Override
          @Autowired
          public void setJob(@Qualifier("jobNumber1") Job job) {
              super.setJob(job);
          }
      };
  }
  </code></pre>
  
  <p>and do <code>jobLauncherTestUtils.launchJob()</code>. Still both jobs are running.</p>