MigrationPaths { public MigrationPaths() { this.migrationPaths = new HashMap<PathKey, MigrationPath>(); } MigrationPaths(); MigrationPath getMigrationPath(URI sourceFormat,
            URI destinationFormat); MigrationPath addMigrationPath(MigrationPath migrationPath); void addAll(List<MigrationPath> migrationpaths); List<eu.planets_project.services.datatypes.MigrationPath> getAsPlanetsPaths();  }
@Test public void testMigrationPaths() throws Exception { final URI sourceFormatURI = new URI("info:test/lowercase"); final URI destinationFormatURI = new URI("info:test/uppercase"); MigrationPath migrationPath = this.migrationPathsToTest.getMigrationPath( sourceFormatURI, destinationFormatURI); Assert .assertEquals( "The source format of the obtained migration path is incorrect.", sourceFormatURI, migrationPath.getSourceFormat()); Assert .assertEquals( "The destination format of the obtained migration path is incorrect.", destinationFormatURI, migrationPath .getDestinationFormat()); }