/**
  * Creation test.
  *
  * <p>Verifies the error message is properly propagated.
  */
 public void testEdgeLayoutException_Msg() {
   EdgeLayoutException exception = new EdgeLayoutException(ERROR_MESSAGE);
   assertNotNull("Unable to instantiate EdgeLayoutException.", exception);
   assertEquals(
       "Error message is not properly propagated to super class.",
       ERROR_MESSAGE,
       exception.getMessage());
 }
  /**
   * Creation test.
   *
   * <p>Verifies the error message and the cause are properly propagated.
   */
  public void testEdgeLayoutException_MsgCause() {
    EdgeLayoutException exception = new EdgeLayoutException(ERROR_MESSAGE, CAUSE_EXCEPTION);

    assertNotNull("Unable to instantiate EdgeLayoutException.", exception);
    assertTrue(
        "The error message should match", exception.getMessage().indexOf(ERROR_MESSAGE) >= 0);
    assertEquals(
        "Cause is not properly propagated to super class.", CAUSE_EXCEPTION, exception.getCause());
  }