TransactionsService extends ConfigurationService<Transactions> { @Override public void update(Transactions value) { Transactions newValue = applyCategories(value); super.update(newValue); } @Inject  TransactionsService(TransactionsPersistenceService persistenceService, CategorizerService categorizerService,
			EntityEventSupport eventSupport); @Override void update(Transactions value);  }
@Test public void updateAppliesCategories() { service.update(transactions); ArgumentCaptor<Transactions> transactionsCaptor = ArgumentCaptor.forClass(Transactions.class); verify(persistenceService).save(transactionsCaptor.capture()); assertCategorized(transactionsCaptor.getValue()); verifyNoMoreInteractions(persistenceService); }