Fault { public String getMessage() { return message; } Fault(Throwable t, int stacktracelength); String getMessage(); String getClassname(); String[] getStacktrace(); Throwable getThrowable(); static Fault createFromJson(String json); String toJson(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetMessage() { System.out.println("getMessage"); String expResult = "ExceptionMssage"; try { throw new Exception(expResult); } catch (Exception e) { Fault instance = new Fault(e, 5); String result = instance.getMessage(); assertThat(result).isEqualTo(expResult); } }