EdgeModel e = new EdgeModel("testModelID", fromNode, toNode);
EdgeLocationModel el1 = new EdgeLocationModel(e, -12.3, -55.67);
EdgeLocationModel el2 = new EdgeLocationModel(e, 12.3, 55.67);
RoadEventModel re1 = new RoadEventModel(RoadEventModel.Type.Accident, el1);
RoadEventModel re2 = new RoadEventModel(RoadEventModel.Type.Roadwork, el1);
RoadEventModel re3 = new RoadEventModel(RoadEventModel.Type.Accident, el2);
RoadEventModel re4 = new RoadEventModel(RoadEventModel.Type.Roadwork, el2);
RoadEventModel re5 = new RoadEventModel(RoadEventModel.Type.Accident);
RoadEventModel re6 = new RoadEventModel(RoadEventModel.Type.Roadwork);
Assert.assertEquals(RoadEventModel.Type.Accident, re1.getEventType());
Assert.assertEquals(RoadEventModel.Type.Accident, re3.getEventType());
Assert.assertEquals(RoadEventModel.Type.Accident, re5.getEventType());
// Assert.assertNotSame(RoadEvent.Type.Accident, re1.getEventType());
// Assert.assertNotSame(RoadEvent.Type.Accident, re3.getEventType());
// Assert.assertNotSame(RoadEvent.Type.Accident, re5.getEventType());
Assert.assertEquals(RoadEventModel.Type.Roadwork, re2.getEventType());
Assert.assertEquals(RoadEventModel.Type.Roadwork, re4.getEventType());
Assert.assertEquals(RoadEventModel.Type.Roadwork, re6.getEventType());
// Assert.assertNotSame(RoadEvent.Type.Roadwork, re2.getEventType());
// Assert.assertNotSame(RoadEvent.Type.Roadwork, re4.getEventType());
// Assert.assertNotSame(RoadEvent.Type.Roadwork, re6.getEventType());