### Question:
ConceptMaps extends AbstractConceptMaps<ConceptMap, ConceptMaps> { public static ConceptMaps getEmpty(SparkSession spark) { Dataset<Row> emptyConceptMaps = conceptMapConverter.emptyDataFrame(spark) .withColumn("timestamp", lit(null).cast("timestamp")); return new ConceptMaps(spark, spark.emptyDataset(URL_AND_VERSION_ENCODER), emptyConceptMaps, spark.emptyDataset(MAPPING_ENCODER)); } protected  ConceptMaps(SparkSession spark,
      Dataset<UrlAndVersion> members,
      Dataset<Row> conceptMaps,
      Dataset<Mapping> mappings); static Encoder<Mapping> getMappingEncoder(); static SparkRowConverter getConceptMapConverter(); 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<Row> conceptMaps); @Override Broadcast<BroadcastableMappings> broadcast(Map<String,String> conceptMapUriToVersion);  }### Answer:
@Test public void testWithMapsFromDirectoryXml() { ConceptMaps maps = ConceptMaps.getEmpty(spark) .withMapsFromDirectory("src/test/resources/xml/conceptmaps"); ConceptMap genderMap = maps.getConceptMap( "urn:cerner:poprec:fhir:conceptmap:demographics:gender", "0.0.1"); Assert.assertNotNull(genderMap); Assert.assertEquals("urn:cerner:poprec:fhir:conceptmap:demographics:gender", genderMap.getUrl()); Assert.assertEquals("0.0.1", genderMap.getVersion()); }
@Test public void testWithMapsFromDirectoryJson() { ConceptMaps maps = ConceptMaps.getEmpty(spark) .withMapsFromDirectory("src/test/resources/json/conceptmaps"); ConceptMap genderMap = maps.getConceptMap( "urn:cerner:poprec:fhir:conceptmap:demographics:gender", "0.0.1"); Assert.assertNotNull(genderMap); Assert.assertEquals("urn:cerner:poprec:fhir:conceptmap:demographics:gender", genderMap.getUrl()); Assert.assertEquals("0.0.1", genderMap.getVersion()); }