@Test
public void matches() {

	MatchRule rule = MatchRule.withPattern("abc");
	MatchRule rule2 = MatchRule.withPattern("def");
	Category category = new Category("a name", ImmutableList.of(rule, rule2));
	assertTrue(category.matches(MockTransaction.create("2015-01-01", "aaabc", 123)));
	assertTrue(category.matches(MockTransaction.create("2015-01-01", "def", 123)));
	assertFalse(category.matches(MockTransaction.create("2015-01-01", "ghi", 123)));
	assertFalse(new Category("nope").matches(MockTransaction.create("2015-01-01", "def", 123)));
}