@Test
public void addRuleByName() {

	MatchRule matchRule = MatchRule.withPattern("yo");
	categoriesService.addRuleByName("a", matchRule);
	Category category = savedCategories.getCategoryByName("a");
	assertEquals(ImmutableList.of(matchRule), category.getMatchRules());
}