JobsBeingExecuted { @Around("execution(* com.oath.micro.server.events.ScheduledJob.scheduleAndLog(..))") public Object aroundScheduledJob(ProceedingJoinPoint pjp) throws Throwable { String type = jobNameType.getCreator() .getType(pjp.getSignature() .getDeclaringType()); return executeScheduledJob(pjp, type); } JobsBeingExecuted(@Qualifier("microserverEventBus") EventBus bus,
            @Value("${system.logging.max.per.hour:10}") long maxLoggingCapacity,
            @Value("${micro.events.job.name.format:SIMPLE}") JobName.Types jobNameType);  JobsBeingExecuted(EventBus bus); @Around("execution(* com.oath.micro.server.events.ScheduledJob.scheduleAndLog(..))") Object aroundScheduledJob(ProceedingJoinPoint pjp); int size(); int events(); @Override String toString();  }
@Test public void testExecute() throws Throwable { Signature sig = Mockito.mock(Signature.class); Mockito.when(pjp.getSignature()) .thenReturn(sig); when(pjp.getTarget()).thenReturn(this); Mockito.when(sig.getDeclaringType()) .thenReturn(String.class); jobs.aroundScheduledJob(pjp); verify(pjp, times(1)).proceed(); }