private Tag friends = new Tag("friends");
@Before
public void setup() {
final Account checking = new Account("Checking", USD);
final Txaction paidRent = new Txaction(checking, decimal("-1500.00"), date(2009, 1, 18));
final Txaction boughtLunch = new Txaction(checking, decimal("-12.34"), new DateTime(2009, 1, 18, 23, 0, 0, 0));
final Txaction deletedLunch = new Txaction(checking, decimal("-12.33"), new DateTime(2009, 1, 18, 23, 0, 0, 0));
final Collection<Txaction> txactions = ImmutableList.of(paidRent, boughtLunch, deletedLunch);
paidRent.addTag(rent);
boughtLunch.addTag(lunch);
boughtLunch.addTag(food);
boughtLunch.addTag(restaurants);
boughtLunch.addTag(friends, decimal("-6.45"));
deletedLunch.addTag(lunch);
deletedLunch.addTag(food);
deletedLunch.addTag(restaurants);
deletedLunch.addTag(friends, decimal("-6.45"));
deletedLunch.setStatus(TxactionStatus.DELETED);
final TagSummarizer summarizer = new TagSummarizer(new CurrencyExchangeRateMap());
this.summaries = summarizer.summarize(txactions, USD);
}