// Create the URIResource
String filePath = "file:" + tempFile.getPath();
URIResource resource = new URIResource(filePath);
// Get the InputSource from the URIResource.
InputSource source = resource.provideInputSource(contextMock);
is = source.getByteStream();
isr = new InputStreamReader(is);
br = new BufferedReader(isr);