}
public void testRead() throws Exception {
XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(VALID_XML));
WorkspaceFactory workspaceFactory = new DefaultWorkspaceFactory();
ContributionFactory contributionFactory = new DefaultContributionFactory();
WorkspaceProcessor processor = new WorkspaceProcessor(workspaceFactory, contributionFactory, null);
Workspace workspace = processor.read(reader);
assertNotNull(workspace);
assertEquals(2, workspace.getContributions().size());