definitions.eResource().save(System.out, Collections.emptyMap());
}
@Test
public void testDataStoreUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("dataStore.json"));
assertTrue(definitions.getRootElements().size() == 1);
assertTrue(definitions.getRootElements().iterator().next() instanceof DataStore);
DataStore da = (DataStore) definitions.getRootElements().iterator().next();
assertEquals("data store", da.getName());
definitions.eResource().save(System.out, Collections.emptyMap());