@@ -0,0 +1,1243 @@
+package com.github.vbauer.herald.annotation;%0A%0Aimport org.junit.Test;%0A%0Aimport java.lang.annotation.Annotation;%0A%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * Unit tests for %7B@link Log%7D.%0A *%0A * @author Vladislav Bauer%0A */%0Apublic class LogTest %7B%0A%0A    private static final String TEST_VALUE = %22TEST_VALUE%22;%0A    private static final boolean TEST_REQUIRED = true;%0A%0A%0A    @Test%0A    public void testContract() %7B%0A        final Log log = createLogObject();%0A%0A        assertThat(log.value(), equalTo(TEST_VALUE));%0A        assertThat(log.required(), equalTo(TEST_REQUIRED));%0A    %7D%0A%0A%0A    private Log createLogObject() %7B%0A        return new Log() %7B%0A            /**%0A             * %7B@inheritDoc%7D%0A             */%0A            @Override%0A            public Class%3C? extends Annotation%3E annotationType() %7B%0A                return Log.class;%0A            %7D%0A%0A            /**%0A             * %7B@inheritDoc%7D%0A             */%0A            @Override%0A            public String value() %7B%0A                return TEST_VALUE;%0A            %7D%0A%0A            /**%0A             * %7B@inheritDoc%7D%0A             */%0A            @Override%0A            public boolean required() %7B%0A                return TEST_REQUIRED;%0A            %7D%0A        %7D;%0A    %7D%0A%0A%7D%0A

Test contract of the Log annotation