### Question:
ValueSets extends AbstractValueSets<ValueSet, ValueSets> { public static ValueSets getEmpty(SparkSession spark) { Dataset<Row> emptyValueSets = valuesetRowConverter.emptyDataFrame(spark) .withColumn("timestamp", lit(null).cast("timestamp")); return new ValueSets(spark, spark.emptyDataset(URL_AND_VERSION_ENCODER), emptyValueSets, spark.emptyDataset(getValueEncoder())); } private  ValueSets(SparkSession spark,
      Dataset<UrlAndVersion> members,
      Dataset<Row> valueSets,
      Dataset<Value> values); static ValueSets getDefault(SparkSession spark); static ValueSets getFromDatabase(SparkSession spark, String databaseName); static ValueSets getEmpty(SparkSession spark); @Override ValueSets withValueSets(Dataset<Row> valueSets); static List<Value> expandValues(ValueSet valueSet);  }### Answer:
@Test public void testWithValueSetsFromDirectoryXml() { ValueSets valueSets = ValueSets.getEmpty(spark) .withValueSetsFromDirectory("src/test/resources/xml/valuesets"); ValueSet marriedValueSet = valueSets.getValueSet( "urn:cerner:bunsen:valueset:married_maritalstatus", "0.0.1"); Assert.assertNotNull(marriedValueSet); Assert.assertEquals("urn:cerner:bunsen:valueset:married_maritalstatus", marriedValueSet.getUrl()); Assert.assertEquals("0.0.1", marriedValueSet.getVersion()); }
@Test public void testWithValueSetsFromDirectoryJson() { ValueSets valueSets = ValueSets.getEmpty(spark) .withValueSetsFromDirectory("src/test/resources/json/valuesets"); ValueSet marriedValueSet = valueSets.getValueSet( "urn:cerner:bunsen:valueset:married_maritalstatus", "0.0.1"); Assert.assertNotNull(marriedValueSet); Assert.assertEquals("urn:cerner:bunsen:valueset:married_maritalstatus", marriedValueSet.getUrl()); Assert.assertEquals("0.0.1", marriedValueSet.getVersion()); }