Fault { public Throwable getThrowable() { return throwable; } 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 testGetThrowable() { System.out.println("getThrowable"); Exception expResult = new Exception(); try { throw expResult; } catch (Exception e) { Fault instance = new Fault(e, 5); Throwable result = instance.getThrowable(); assertThat(result).isEqualTo(expResult); } }