### Question:
TraceAnnotationAspect { public int getCalled() { return called; }  @Around("execution(@annotation.Trace * *(..))") void trace(ProceedingJoinPoint proceedingJP); void resetCalled(); int getCalled();  }### Answer:
@Test public void tracingOnNotAnnotatedMethodIsNotCalled() { assertThat(traceAnnotationAspect.getCalled(), is(0)); simpleService.doSomething(); assertThat(traceAnnotationAspect.getCalled(), is(0)); }
@Test public void tracingOnAnnotatedMethodIsCalled() { assertThat(traceAnnotationAspect.getCalled(), is(0)); simpleService.annotated(); assertThat(traceAnnotationAspect.getCalled(), is(1)); }