@Test
public void parseJobCallbackWithPostTest() {

  final Props props = new Props();
  final String url = "http://lva1-rpt07.corp.linkedin.com";
  final String bodyText = "{name:\"you\"}";
  props.put("job.notification."
      + JobCallbackStatusEnum.STARTED.name().toLowerCase() + ".1.url", url);
  props.put("job.notification."
          + JobCallbackStatusEnum.STARTED.name().toLowerCase() + ".1.method",
      HTTP_POST);
  props.put("job.notification."
          + JobCallbackStatusEnum.STARTED.name().toLowerCase() + ".1.body",
      bodyText);
  final List<HttpRequestBase> result =
      JobCallbackUtil.parseJobCallbackProperties(props,
          JobCallbackStatusEnum.STARTED, contextInfo, 3);
  Assert.assertEquals(1, result.size());
  final HttpPost httpPost = (HttpPost) result.get(0);
  Assert.assertEquals(url, httpPost.getURI().toString());
  Assert.assertEquals(HTTP_POST, httpPost.getMethod());
  Assert.assertEquals(bodyText.length(), httpPost.getEntity()
      .getContentLength());
}