@Test
public void getStackTraceShouldReturnStackTrace() {

    String msg = "This is the message for a test exception";
    Throwable t = new IllegalArgumentException(msg);
    String trace = StringUtil.getStackTrace(t);
    assertThat(trace, containsString(msg));
    assertThat(trace, containsString(this.getClass().getName()));
}