@Test
public void postBodyLengthTooLargeTest() {

  final Props jobProps = new Props();
  jobProps.put("job.notification."
          + JobCallbackStatusEnum.FAILURE.name().toLowerCase() + ".1.url",
      "http://www.linkedin.com");
  jobProps.put("job.notification."
          + JobCallbackStatusEnum.FAILURE.name().toLowerCase() + ".1.method",
      JobCallbackConstants.HTTP_POST);
  final String postBodyValue = "abcdefghijklmnopqrstuvwxyz";
  final int postBodyLength = 20;
  Assert.assertTrue(postBodyValue.length() > postBodyLength);
  jobProps.put("job.notification."
          + JobCallbackStatusEnum.FAILURE.name().toLowerCase() + ".1.body",
      postBodyValue);
  final Props localServerProps = new Props();
  localServerProps.put(MAX_POST_BODY_LENGTH_PROPERTY_KEY, postBodyLength);
  final Set<String> errors = new HashSet<>();
  Assert.assertEquals(0, JobCallbackValidator.validate("bogusJob",
      localServerProps, jobProps, errors));
  System.out.println(errors);
  Assert.assertEquals(1, errors.size());
}