* obey the stream handling contract.
*/
public void testStreamHandling() throws RepositoryException, IOException {
exportRepository(SAVEBINARY, RECURSE);
InputStreamWrapper in = new InputStreamWrapper(new FileInputStream(file));
session.importXML(treeComparator.targetFolder, in,
ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
assertTrue("Session.importXML(..., InputStream, ...) is expected to close the passed input stream", in.isClosed());
session.refresh(false);
in = new InputStreamWrapper(new FileInputStream(file));
workspace.importXML(treeComparator.targetFolder, in,
ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
assertTrue("Workspace.importXML(..., InputStream, ...) is expected to close the passed input stream", in.isClosed());
}