Added test for DROOLS-66.

Added test verifying https://issues.jboss.org/browse/DROOLS-66 (and related BZ 913252). Enhanced org.drools.core.io.impl.UrlResource to allow more convenient testing.

This is a port of changes in pull request #185 originally done for 5.3.x branch.