ResourceDescriptor descriptor = ResourceDescriptorFactory.getInstance()
.createDescriptor("ics", "image.");
URL sourceURL = TestUtilities.class.getResource("images/" + fileName);
descriptor.getInputParameters().setParameterValue(ParameterNames.SOURCE_URL, sourceURL.toExternalForm());
HttpServletRequestMock request = new HttpServletRequestMock(
"test-request", expectationContainer);
String pathInfo = "/" + rule + "/" + fileName;
request.expects.getPathInfo().returns(pathInfo).any();
final MockFactory mf = MockFactory.getDefaultInstance();