@Test
public void addRuleByNameNotFound() {

	thrown.expect(ValidationException.class);
	thrown.expectMessage("Category name must be specified.");
	categoriesService.addRuleByName(" ", MatchRule.withPattern("yo"));
}