import org.xml.sax.InputSource;
public class URIResolverTest extends TestCase {
public void testResolveEntity() {
AARFileBasedURIResolver aar = new AARFileBasedURIResolver(null);
WarFileBasedURIResolver war = new WarFileBasedURIResolver(null);
InputSource inputSource = aar.resolveEntity(null,
"http://www.test.org/test.xsd",
"http://www.test.org/schema.xsd");
assertNotNull(inputSource);
assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
inputSource = war.resolveEntity(null, "http://www.test.org/test.xsd",