TransactionsService extends ConfigurationService<Transactions> { @Override protected Transactions load() { return applyCategories(super.load()); } @Inject  TransactionsService(TransactionsPersistenceService persistenceService, CategorizerService categorizerService,
			EntityEventSupport eventSupport); @Override void update(Transactions value);  }
@Test public void categoriesUpdated() { Transactions transactions = service.retrieve(); eventSupport.updated(new Categories()); Transactions transactions2 = new Transactions( ImmutableList.of(MockTransaction.create("2015-01-01", "a desc", 123))); doReturn(transactions2).when(persistenceService).load(); Transactions transactions3 = service.retrieve(); assertNotSame(transactions, transactions3); verify(persistenceService, times(2)).load(); }