### Question:
JUnitResultArchiverConverter extends SingleTypedConverter<JUnitResultArchiver> { @Override public boolean convert(ConverterRequest request, ConverterResult result, Object target) { JUnitResultArchiver jUnitResultArchiver = (JUnitResultArchiver) target; ModelASTBuildCondition buildCondition = ModelASTUtils.buildOrFindBuildCondition( result.getModelASTPipelineDef(), "always" ); ModelASTStep junit = ModelASTUtils.buildGenericStep( jUnitResultArchiver, this ); ModelASTUtils.addStep(buildCondition, junit); return true; }  @Override boolean convert(ConverterRequest request, ConverterResult result, Object target);  }### Answer:
@Test public void simpletest() throws Exception { String projectName = Long.toString( System.currentTimeMillis() ); FreeStyleProject p = j.createFreeStyleProject( projectName ); JUnitResultArchiver publisher = new JUnitResultArchiver( "****.xml') assertThat( groovy, containsString( "$class: 'JUnitResultArchiver'" ) ); assertThat( groovy, containsString( "healthScaleFactor: 2.0" ) ); assertThat( groovy, containsString( "keepLongStdio: true" ) ); assertThat( groovy, containsString( "testResults: '**/**.xml'" ) ); }