/**
  * Tests method notifyGraphEdgeChange() if semantic model is null. IllegalGraphElementException is
  * expected.
  *
  * @throws Exception exception
  */
 public void testNotifyGraphEdgeChangeIfSemanticModelNull() throws Exception {
   graphEdge.setSemanticModel(null);
   try {
     baseEdge = new BaseEdgeImpl(graphEdge, KEYWORD_METACLASS);
     baseEdge.notifyGraphEdgeChange();
     fail("IllegalGraphElementException is expected becasue semantic model is null.");
   } catch (IllegalGraphElementException e) {
     // success
   }
 }
 /**
  * Tests method notifyGraphEdgeChange() if semantic model is non-Uml1SemanticModelBridge.
  * IllegalGraphElementException is expected.
  *
  * @throws Exception exception
  */
 public void testNotifyGraphEdgeChangeIfInvalidSemanticModelClass() throws Exception {
   graphEdge.setSemanticModel(new CoreSemanticModelBridge());
   try {
     baseEdge = new BaseEdgeImpl(graphEdge, KEYWORD_METACLASS);
     baseEdge.notifyGraphEdgeChange();
     fail(
         "IllegalGraphElementException is expected becasue semantic model is non-Uml1SemanticModelBridge.");
   } catch (IllegalGraphElementException e) {
     // success
   }
 }