// Story: As a User I should be able to update an Attachment
@Test
public void shouldBeAbleToUpdateAttachment() throws Exception {
String updatedTitle = "Test 2";
Attachment attachment = createAttachment();
attachment = repository.store(attachment);
attachment = attachment.setTitle(updatedTitle);
attachment = repository.store(attachment);
Attachment updated = repository.get(attachment.getId());
Assert.assertEquals(updated.getTitle(), updatedTitle);
Assert.assertNotNull(attachment.getLastUpdated());
}