@Test
public void testHTTPPostXML() throws Exception {

  // create a dummy mediapackage
  MediaPackageBuilderFactory factory = MediaPackageBuilderFactory.newInstance();
  MediaPackageBuilder builder = factory.newMediaPackageBuilder();
  MediaPackage mp = builder.createNew(new IdImpl("xyz"));
  mp.setTitle("test");
  mp.addContributor("lkiesow");
  mp.addContributor("lkiesow");
  /* Sending stuff to port 9 shound never return anything as the Discard
   * Protocol uses port 9 */
  InstanceAndHandler tuple = createWorkflow("http://127.0.0.1:9", "xml");
  tuple.workflowInstance.setMediaPackage(mp);
  try {
    tuple.workflowHandler.start(tuple.workflowInstance, null);
    /* This should raise an exception. Something is wrong if not. */
    Assert.fail();
  } catch (WorkflowOperationException e) {
    logger.info(e.toString());
  }
}