### Question:
UniqueAnnotations { public static Annotation create() { return create(SEQUENCE.getAndIncrement()); } private  UniqueAnnotations(); static Annotation create();  }### Answer:
@Test public void testUniqueness() { Annotation a1 = UniqueAnnotations.create(); Annotation a2 = UniqueAnnotations.create(); assertThat(a1, equalTo(a1)); assertThat(a2, equalTo(a2)); assertThat(a1, not(equalTo(a2))); assertThat(a2, not(equalTo(a1))); }
@Test public void testEquality() { Annotation real = getClass().getAnnotation(UniqueAnnotations.UniqueAnnotation.class); Annotation fake = UniqueAnnotations.create(100); assertThat(real, equalTo(fake)); assertThat(fake, equalTo(real)); }