Throwables { public static String toString( Throwable t ) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); PrintStream out = new PrintStream( bos ); t.printStackTrace( out ); return new String( bos.toByteArray(), Charsets.UTF_8 ); }  static String toString( Throwable t ); static T createMultiException(List<T> exceptions); static C createMultiException(C exception, List<Throwable> throwables); static T withCheckedException(Class<U> uncheckedExceptionClazz , Class<C> checkedExceptionClazz, Supplier<T> supplier);  }
@Test public void testToString() throws Exception { String value = Throwables.toString( new NullPointerException( "" ) ); assertTrue( value != null ); }