PrimaryTumorToDOIDMapper { @NotNull static PrimaryTumorToDOIDMapper createFromResource() throws IOException { final CSVParser parser = CSVParser.parse(TUMOR_LOCATION_MAPPING_CSV, Charset.defaultCharset(), CSVFormat.DEFAULT.withHeader()); Map<String, Set<String>> doidsPerPrimaryTumor = Maps.newHashMap(); for (final CSVRecord record : parser) { final String primaryTumorLocation = record.get("primaryTumorLocation"); final String doids = record.get("doids"); doidsPerPrimaryTumor.put(primaryTumorLocation, toSet(doids)); } return new PrimaryTumorToDOIDMapper(doidsPerPrimaryTumor); } @VisibleForTesting  PrimaryTumorToDOIDMapper(@NotNull final Map<String, Set<String>> doidsPerPrimaryTumor);   }
@Test public void canCreateProductionResource() throws IOException { assertNotNull(PrimaryTumorToDOIDMapper.createFromResource()); }