@Test
@Rollback(true)
public void save_existingEntity() {
final String UPDATED_TEXT = "changed the text";
Category category = repository.get(VALID_ENTITY_ID.toString());
assertThat(category.getText(), is(not(UPDATED_TEXT)));
category.setText(UPDATED_TEXT);
repository.save(category);
// fetch again and verify update
Category modCategory = repository.get(VALID_ENTITY_ID.toString());
assertThat(modCategory.getText(), is(UPDATED_TEXT));
}