/** * Initialize. */ @BeforeMethod public void init() { MockitoAnnotations.initMocks(this); aggregator = new TimerDataAggregator(transactionManager); aggregator.aggregationPeriod = 5l; aggregator.cacheCleanSleepingPeriod = 10; aggregator.maxElements = 100; aggregator.entityManager = entityManager; }