code: public static void assertNoCheckedExceptionsAreThrown(final Method method, Class<? extends Annotation> annotation) 
     {
        Class<?>[] declaredExceptions = method.getExceptionTypes();
        for (int i = 0; i < declaredExceptions.length; i++)
        {
           Class<?> exception = declaredExceptions[i];
           if (!exception.isAssignableFrom(RuntimeException.class))
           {
              throw annotation == null ? MESSAGES.methodCannotThrowCheckedException(method) : MESSAGES.methodCannotThrowCheckedException2(method, annotation);
           }
        }
     }
docs: Asserts method don't throw checked exceptions.
  
  @param method to validate
  @param annotation annotation to propagate in exception message