protected void setUp() throws Exception {
super.setUp();
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
.put("library", new XMLResourceFactoryImpl());
Resource resource = resourceSet.createResource(URI
.createURI("test.library"));
// create a library with three books and two writers
fixture = LibraryFactory.eINSTANCE.createLibrary();