### Question:
ConceptMaps extends AbstractConceptMaps<ConceptMap, ConceptMaps> { public static List<Mapping> expandMappings(ConceptMap map) { List<Mapping> mappings = new ArrayList<>(); expandMappingsIterator(map).forEachRemaining(mappings::add); return mappings; } protected  ConceptMaps(SparkSession spark,
      Dataset<UrlAndVersion> members,
      Dataset<ConceptMap> conceptMaps,
      Dataset<Mapping> mappings); static Encoder<Mapping> getMappingEncoder(); static Encoder<ConceptMap> getConceptMapEncoder(); static ConceptMaps getDefault(SparkSession spark); static ConceptMaps getFromDatabase(SparkSession spark, String databaseName); static ConceptMaps getEmpty(SparkSession spark); static List<Mapping> expandMappings(ConceptMap map); @Override ConceptMaps withConceptMaps(Dataset<ConceptMap> conceptMaps); @Override Broadcast<BroadcastableMappings> broadcast(Map<String,String> conceptMapUriToVersion);  }### Answer:
@Test public void testExpandMappings() { ConceptMap conceptMap = ConceptMaps.getEmpty(spark) .withConceptMaps(conceptMap("urn:cerner:conceptmap:map", "1")) .getConceptMap("urn:cerner:conceptmap:map", "1"); List<Mapping> mappings = ConceptMaps.expandMappings(conceptMap); Mapping expectedValue = new Mapping("urn:cerner:conceptmap:map", "1", "urn:source:valueset", "urn:target:valueset", "urn:source:system", "urn:source:code:a", "urn:target:system", "urn:target:code:1", Mapping.EQUIVALENT); Assert.assertEquals(1, mappings.size()); Assert.assertEquals(expectedValue, mappings.get(0)); }