source: class HelloWorldBuilderTest {
  
      @Rule
      public JenkinsRule jenkins;
      final String name;
  
      @Test
      public void testBuildFrench() throws Exception {
  
target: 
          FreeStyleProject project = jenkins.createFreeStyleProject();
          HelloWorldBuilder builder = new HelloWorldBuilder(name);
          builder.setUseFrench(true);
          project.getBuildersList().add(builder);
  
          FreeStyleBuild build = jenkins.buildAndAssertSuccess(project);
          jenkins.assertLogContains("Bonjour, " + name, build);
      }
  
  }