@Test
public void importObjectsTenderAmendment() throws Exception {

    final ClassLoader classLoader = getClass().getClassLoader();
    final File file = new File(classLoader
            .getResource("json/fictional-example/ocds-213czf-000-00001-03-tenderAmendment.json").getFile());
    final ReleasePackageJsonImport releasePackageJsonImport = new ReleasePackageJsonImport(releaseRepository, file);
    final Collection<Release> releases = releasePackageJsonImport.importObjects();
    final Release importedRelease = releaseRepository.findById("ocds-213czf-000-00001-03-tenderAmendment").get();
    Assert.assertEquals(1, releases.size());
    Assert.assertNotNull(importedRelease);
    Assert.assertArrayEquals(new String[] {Tender.SubmissionMethod.electronicSubmission.toString()},
            importedRelease.getTender().getSubmissionMethod().toArray());
}