Fault { public String getClassname() { return classname; } 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 testGetClassname() { System.out.println("getClassname"); String expResult = "java.lang.Exception"; try { throw new Exception(); } catch (Exception e) { Fault instance = new Fault(e, 5); String result = instance.getClassname(); assertThat(result).isEqualTo(expResult); } }