Source:
public void affiliationMatchingJob() throws IOException { String jsonInputOrgPath = StaticResourceProvider .getResourcePath("data/input/organizations.json"); String jsonInputAffPath = StaticResourceProvider .getResourcePath("data/input/affiliations.json"); String jsonInputInferredDocProjPath = StaticResourceProvider .getResourcePath("data/input/docProjInferred.json"); String jsonInputDocProjPath = StaticResourceProvider .getResourcePath("data/input/docProj.json"); String jsonInputProjOrgPath = StaticResourceProvider .getResourcePath("data/input/projOrg.json"); String jsonOutputPath = StaticResourceProvider .getResourcePath("data/expectedOutput/matchedOrganizations.json"); String jsonOutputReportPath = StaticResourceProvider .getResourcePath("data/expectedOutput/report.json"); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputOrgPath, Organization.class), inputOrgDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputAffPath, ExtractedDocumentMetadata.class), inputAffDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputInferredDocProjPath, DocumentToProject.class), inputInferredDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputDocProjPath, eu.dnetlib.iis.importer.schemas.DocumentToProject.class), inputDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputProjOrgPath, ProjectToOrganization.class), inputProjOrgDirPath); executeJobAndAssert(jsonOutputPath, jsonOutputReportPath); }

Target:
public void affiliationMatchingJob() throws IOException { String jsonInputOrgPath = ClassPathResourceProvider .getResourcePath("data/input/organizations.json"); String jsonInputAffPath = ClassPathResourceProvider .getResourcePath("data/input/affiliations.json"); String jsonInputInferredDocProjPath = ClassPathResourceProvider .getResourcePath("data/input/docProjInferred.json"); String jsonInputDocProjPath = ClassPathResourceProvider .getResourcePath("data/input/docProj.json"); String jsonInputProjOrgPath = ClassPathResourceProvider .getResourcePath("data/input/projOrg.json"); String jsonOutputPath = ClassPathResourceProvider .getResourcePath("data/expectedOutput/matchedOrganizations.json"); String jsonOutputReportPath = ClassPathResourceProvider .getResourcePath("data/expectedOutput/report.json"); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputOrgPath, Organization.class), inputOrgDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputAffPath, ExtractedDocumentMetadata.class), inputAffDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputInferredDocProjPath, DocumentToProject.class), inputInferredDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputDocProjPath, eu.dnetlib.iis.importer.schemas.DocumentToProject.class), inputDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputProjOrgPath, ProjectToOrganization.class), inputProjOrgDirPath); executeJobAndAssert(jsonOutputPath, jsonOutputReportPath); }