@Test
public void testAssociationBidirectionalUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
Definitions definitions = unmarshaller.unmarshall(getTestJsonFile("associationBoth.json"));
Process process = (Process) definitions.getRootElements().get(0);
Task g = (Task) process.getFlowElements().get(0);
assertEquals("task", g.getName());
TextAnnotation textA = (TextAnnotation) process.getArtifacts().get(0);
Association association = (Association) process.getArtifacts().get(1);
assertEquals(g, association.getSourceRef());
assertEquals(textA, association.getTargetRef());
assertEquals(AssociationDirection.BOTH, association.getAssociationDirection());