String curDir = System.getProperty("user.dir"); //$NON-NLS-1$
String modelFile = curDir + "/test/CompositePattern.ecore"; //$NON-NLS-1$
EcoreModelRepresentation model = new EcoreModelRepresentation(modelFile);
Operation operation = new Operation();
IArtefactRepresentation artefact = operation.process(model, null);
Assert.assertNotNull(artefact);
EcoreToolsGMFDiagramURI diagram = (EcoreToolsGMFDiagramURI) artefact;
String fileName = diagram.getDiagramURI().toFileString();
File file = new File(fileName);