* @throws Exception the test failed
*/
public void testResolvingHttpLenient() throws Exception
{
DataSourceResolver dataSourceResolver = new DataSourceUrlResolver(new URL("http://www.apache.org"), true);
assertTrue(toByteArray(dataSourceResolver.resolve("http://www.apache.org/images/feather-small.gif")).length > 1);
assertTrue(toByteArray(dataSourceResolver.resolve("images/feather-small.gif")).length > 1);
assertTrue(toByteArray(dataSourceResolver.resolve("./images/feather-small.gif")).length > 1);
assertTrue(toByteArray(dataSourceResolver.resolve("/images/feather-small.gif")).length > 1);
assertNull(toByteArray(dataSourceResolver.resolve("/images/does-not-exist.gif")));
}