### Question:
ClasspathResourceLocator implements ContainerResourceLocator { public InputStream getResource(String configName, String defaultUri) throws IllegalArgumentException { return getResource(defaultUri); }  InputStream getResource(String configName, String defaultUri); InputStream getResource(String uri); URI getBaseURI();  }### Answer:
@Test public void test_getResource() { ClasspathResourceLocator cpResLocator = new ClasspathResourceLocator(); testArgs(cpResLocator, null); testArgs(cpResLocator, "http: testArgs(cpResLocator, "a/b.txt"); InputStream stream = cpResLocator.getResource("/a.adf"); assertNotNull("Expected a resource stream.", stream); stream = cpResLocator.getResource("/x.txt"); assertNull("Expected no resource stream.", stream); }