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

    StackTraceCleaner.cleanStackTrace(throwable);

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