assertEquals("InflowOutflow already exists", result, controller.getOrCreateInflowOutflow(interval, transaction.getAccount().getCurrency(), Locale.US, inflowsOutflows));
}
@Test
public void testProcess() {
InflowOutflow inflowOutflow = new InflowOutflow(interval, "USD", Locale.US, messageSource);
controller.process(transaction, inflowOutflow);
assertEquals("InflowOutflow modified", BigDecimal.TEN, inflowOutflow.getInflow(date).get(transaction.getSubcategory().getParentCategory()).get(transaction.getSubcategory()));
}