@Test
 public void testFailure() throws IOException {
   BlitlinePostResults results = mapper.readValue(ERROR_MESSAGE, BlitlinePostResults.class);
   assertFalse(results.isSuccessful());
   assertEquals(
       "Your application ID is required to process any job. Check your Blitline account page for your application ID",
       results.getError());
   assertNull(results.getImageDestinations());
 }
 @Test
 public void testSuccess() throws IOException {
   BlitlinePostResults results = mapper.readValue(SUCCESS_MESSAGE, BlitlinePostResults.class);
   assertTrue(results.isSuccessful());
   assertEquals(2, results.getImages().size());
   assertEquals(
       "http://s3.amazonaws.com/blitline/2014031113/3155/0UQcMs9Ko41_aimxglMYPlQ.jpg",
       results.getImageDestinations().get("cropsquare"));
   assertEquals("7x52QvS1lyhU7VqPK7pPoRg", results.getJobId());
 }