DocumentStoreException extends RuntimeException { public static DocumentStoreException convert(@NotNull Throwable t) { return convert(t, t.getMessage()); } DocumentStoreException(String message);  DocumentStoreException(Throwable cause);  DocumentStoreException(String message, Throwable cause);  DocumentStoreException(String message, Throwable cause, Type type); static DocumentStoreException convert(@NotNull Throwable t); static DocumentStoreException convert(@NotNull Throwable t, String msg); static DocumentStoreException convert(@NotNull Throwable t,
                                                 Iterable<String> ids); static DocumentStoreException asDocumentStoreException(String message,
                                                                  Throwable t,
                                                                  Type type,
                                                                  Iterable<String> ids); Type getType();  }
@Test public void convertDocumentStoreException() { Exception cause = new DocumentStoreException("foo"); DocumentStoreException dse = DocumentStoreException.convert(cause); assertSame(cause, dse); }