static void cleanStackTrace(Throwable throwable) {
    new StackTraceCleaner(throwable).clean(Sets.<Throwable>newIdentityHashSet());
  }
@Test
  public void failureFromJUnitInfrastructureIncludesItInStack() {
    Throwable throwable =
        createThrowableWithStackTrace(
            "com.google.common.truth.StringSubject",
            SomeStatement.class.getName(),
            "com.google.example.SomeClass");

    StackTraceCleaner.cleanStackTrace(throwable);

    assertThat(throwable.getStackTrace())
        .isEqualTo(
            new StackTraceElement[] {
              createStackTraceElement(SomeStatement.class.getName()),
              createStackTraceElement("com.google.example.SomeClass"),
            });
  }