### Question:
Smooks { public ApplicationContext getApplicationContext() { return applicationContext; } Smooks();  Smooks(StandaloneApplicationContext applicationContext);  Smooks(String resourceURI);  Smooks(InputStream resourceConfigStream); ClassLoader getClassLoader(); void setClassLoader(ClassLoader classLoader); void setFilterSettings(FilterSettings filterSettings); Smooks setExports(Exports exports); void setReaderConfig(ReaderConfigurator readerConfigurator); void setNamespaces(Properties namespaces); SmooksResourceConfiguration addVisitor(Visitor visitor); SmooksResourceConfiguration addVisitor(Visitor visitor, String targetSelector); SmooksResourceConfiguration addVisitor(Visitor visitor, String targetSelector, String targetSelectorNS); void addVisitors(VisitorAppender visitorAppender); void addConfiguration(SmooksResourceConfiguration resourceConfig); void addConfigurations(String resourceURI); void addConfigurations(String baseURI, InputStream resourceConfigStream); void addConfigurations(InputStream resourceConfigStream); ExecutionContext createExecutionContext(); ExecutionContext createExecutionContext(String targetProfile); void filterSource(Source source); void filterSource(Source source, Result... results); void filterSource(ExecutionContext executionContext, Source source, Result... results); ApplicationContext getApplicationContext(); void close();  }### Answer:
@Test public void test_setResourceLocator() throws IOException, SAXException { Smooks smooks = new Smooks("classpath:/org/smooks/test_setClassLoader_01.xml"); URIResourceLocator resourceLocator = (URIResourceLocator)smooks.getApplicationContext().getResourceLocator(); assertEquals("classpath:/org/smooks/", resourceLocator.getBaseURI().toString()); assertEquals("classpath:/org/smooks/somethingelse.xml", resourceLocator.getBaseURI().resolve("somethingelse.xml").toString()); }