### Question:
ExampleMarketDataBuilder { public static ExampleMarketDataBuilder ofResource(String resourceRoot) { return ofResource(resourceRoot, ExampleMarketDataBuilder.class.getClassLoader()); }  static ExampleMarketDataBuilder ofResource(String resourceRoot); static ExampleMarketDataBuilder ofResource(String resourceRoot, ClassLoader classLoader); static ExampleMarketDataBuilder ofPath(Path rootPath); ImmutableMarketData buildSnapshot(LocalDate marketDataDate); RatesMarketDataLookup ratesLookup(LocalDate marketDataDate); SortedMap<LocalDate, RatesCurveGroup> loadAllRatesCurves();  }### Answer:
@Test public void test_ofResource_directory() { ExampleMarketDataBuilder builder = ExampleMarketDataBuilder.ofResource(EXAMPLE_MARKET_DATA_CLASSPATH_ROOT); assertBuilder(builder); }
@Test public void test_ofResource_directory_extraSlashes() { ExampleMarketDataBuilder builder = ExampleMarketDataBuilder.ofResource("/" + EXAMPLE_MARKET_DATA_CLASSPATH_ROOT + "/"); assertBuilder(builder); }
@Test public void test_ofResource_directory_notFound() { assertThatIllegalArgumentException().isThrownBy(() -> ExampleMarketDataBuilder.ofResource("bad-dir")); }