public static EncodableThrowable forThrowable(Throwable throwable) {
    EncodableThrowable comparable = new EncodableThrowable();
    comparable.throwable = throwable;
    return comparable;
  }
@Test
  public void testEqualsDifferentUnderlyingTypes() {
    String message = "some message";
    assertNotEquals(
        EncodableThrowable.forThrowable(new RuntimeException(message)),
        EncodableThrowable.forThrowable(new Exception(message)));
  }