### Question:
BeanNameAspect { public int getCalled() { return called; }  @Around("mypointcuts.MyPointcuts.beanNamePointcut()") void trace(ProceedingJoinPoint proceedingJP); void resetCalled(); int getCalled();  }### Answer:
@Test public void tracingOnServiceIsCalled() { assertThat(beanNameAspect.getCalled(), is(0)); simpleService.doSomething(); assertThat(beanNameAspect.getCalled(), is(1)); }
@Test public void tracingOnRepsositoryIsNotCalled() { assertThat(beanNameAspect.getCalled(), is(0)); simpleRepository.doSomething(); assertThat(beanNameAspect.getCalled(), is(0)); }