    001    package org.junit.runners.model;
    002
    003    import java.lang.annotation.Annotation;
    004
    005    /**
    006     * A model element that may have annotations.
    007     *
    008     * @since 4.12
    009     */
    010    public interface Annotatable {
    011        /**
    012         * Returns the model elements' annotations.
    013         */
    014        Annotation[] getAnnotations();
    015
    016        /**
    017         * Returns the annotation on the model element of the given type, or @code{null}
    018         */
    019        <T extends Annotation> T getAnnotation(Class<T> annotationType);
    020    }