NATTraversalTechniqueNotFoundException extends Exception { @Override public String getMessage() { return this.toString(); } NATTraversalTechniqueNotFoundException(final String natTraversalTechniqueName); String getNatTraversalTechniqueName(); @Override String getMessage(); @Override String toString();  }
@Test public void testGetMessage() { assertEquals(this.message, this.e.getMessage()); }