001package com.ganteater.ae.processor.annotation; 002 003import static org.junit.Assert.*; 004 005import java.lang.annotation.Retention; 006import java.lang.annotation.RetentionPolicy; 007 008import org.junit.Test; 009 010public class CommandExamplesTest { 011 012 @Test 013 public void annotation_shouldHaveRuntimeRetention() { 014 // Arrange 015 Retention retention = CommandExamples.class.getAnnotation(Retention.class); 016 017 // Act 018 RetentionPolicy policy = retention.value(); 019 020 // Assert 021 assertEquals(RetentionPolicy.RUNTIME, policy); 022 } 023}