### Question:
ResourceConfig { public static List<ResourceLocator> orderedResources(String resourceName) { ArgChecker.notNull(resourceName, "resourceName"); return Unchecked.wrap(() -> orderedResources0(resourceName)); } private  ResourceConfig(); static IniFile combinedIniFile(String resourceName); static IniFile combinedIniFile(List<ResourceLocator> resources); static List<ResourceLocator> orderedResources(String resourceName); static final String RESOURCE_DIRS_PROPERTY; }### Answer:
@Test public void test_orderedResources() throws Exception { List<ResourceLocator> list = ResourceConfig.orderedResources("TestFile.txt"); assertThat(list.size()).isEqualTo(1); ResourceLocator test = list.get(0); assertThat(test.getLocator()) .startsWith("classpath:") .endsWith("com/opengamma/strata/config/base/TestFile.txt"); assertThat(test.getByteSource().read()[0]).isEqualTo((byte) 'H'); assertThat(test.getCharSource().readLines()).isEqualTo(ImmutableList.of("HelloWorld")); assertThat(test.getCharSource(StandardCharsets.UTF_8).readLines()).isEqualTo(ImmutableList.of("HelloWorld")); assertThat(test.toString()).isEqualTo(test.getLocator()); }
@Test public void test_orderedResources_notFound() throws Exception { String captured = caputureSystemErr( () -> assertThatIllegalStateException().isThrownBy(() -> ResourceConfig.orderedResources("NotFound.txt"))); assertThat(captured).contains("No resource files found on the classpath"); }