// Story: As a User I should be able to create an Attachment
@Test
public void shouldBeAbleToCreateAttachment() throws Exception {
Attachment attachment = createAttachment();
repository.store(attachment);
Attachment stored = repository.get(attachment.getId());
Assert.assertNotNull(stored);
Assert.assertEquals(attachment.getId(), stored.getId());
Assert.assertEquals(attachment.getTitle(), stored.getTitle());
Assert.assertEquals(attachment.getUrl(), stored.getUrl());
Assert.assertEquals(attachment.getMimeType(), stored.getMimeType());
Assert.assertNotNull(stored.getCreated());
}