@Test
public void createDuplicateName() {

	thrown.expect(ValidationException.class);
	thrown.expectMessage(
			"Category with name \"a\" cannot be created since a category with the same name already exists.");
	categoriesService.create(new Category("a "));
}