{
ResourceSet testResourceSet = createResourceSet();
testResourceSet.getURIConverter().getURIMap().put(URI.createURI("../TargetObject/"), targetObject1.eResource().getURI().trimSegments(1).appendSegment(""));
Resource libraryBinary = new BinaryResourceImpl(URI.createURI(temporaryFolder.newFile("model.binary").getAbsolutePath()));
testResourceSet.getResources().add(libraryBinary);
libraryBinary.load(new ByteArrayInputStream(out.toByteArray()), null);
EChecker.checkObject(primaryObject, libraryBinary.getContents().get(0));
}
{
ResourceSet testResourceSet = createResourceSet();
testResourceSet.getURIConverter().getURIMap().put(URI.createURI("../TargetObject/"), targetObject1.eResource().getURI().trimSegments(1).appendSegment(""));