System.out.println("<<< get id=" + getEntry.getId() + " entry=" + getEntry.getTitle());
}
@Test
public void testAtomGetException() throws Exception {
Collection resourceCollection = testService.getCustomerCollection();
Assert.assertNotNull(resourceCollection);
Entry postEntry = postEntry("Sponge Bob");
System.out.println(">>> post entry= " + postEntry.getTitle());
Entry newEntry = resourceCollection.post(postEntry);
System.out.println("<<< Entry posted for " + newEntry.getTitle());
System.out.println(newEntry.getId());
// Delete the entry to force the Collection to throw NotFoundException
resourceCollection.delete(newEntry.getId().toString());
try {
resourceCollection.get(newEntry.getId().toString());
} catch (Exception e) {
Assert.assertEquals("NotFoundException", e.getClass().getSimpleName());
}
}