/**
* @return an implementation of {@link UriLocatorFactory} which always return a valid stream which contains the
* resource uri as content.
*/
public static UriLocatorFactory createResourceMockingLocatorFactory() {
return new AbstractUriLocatorFactory() {
public UriLocator getInstance(final String uri) {
return createResourceMockingLocator();
}
};
}