public void testMessageUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("message.json"), "").getContents().get(0));
assertTrue(definitions.getRootElements().size() == 2);
assertTrue(definitions.getRootElements().iterator().next() instanceof Message);
Message msg = (Message) definitions.getRootElements().iterator().next();
assertEquals("message", msg.getName());
definitions.eResource().save(System.out, Collections.emptyMap());
}