@Test
public void testValidInputParsedOutputPortNotConnected() throws JSONException
{

  parser.parsedOutput.setSink(null);
  String tuple = "{" + "\"id\": 2," + "\"name\": \"An ice sculpture\"," + "\"price\": 1,"
      + "\"tags\": [\"cold\", \"ice\"]," + "\"dimensions\": {" + "\"length\": 7.0," + "\"width\" : 8.0,"
      + "\"height\": 9.5" + "}," + "\"warehouseLocation\": {" + "\"latitude\": -78.75," + "\"longitude\": 20.4"
      + "}," + "\"dateOfManufacture\": \"2013/09/29\"," + "\"dateOfExpiry\": \"2013\"" + "}";
  parser.beginWindow(0);
  parser.in.process(tuple.getBytes());
  parser.endWindow();
  Assert.assertEquals(0, objectPort.collectedTuples.size());
  Assert.assertEquals(1, pojoPort.collectedTuples.size());
  Assert.assertEquals(0, error.collectedTuples.size());
  Object obj = pojoPort.collectedTuples.get(0);
  Assert.assertNotNull(obj);
  Assert.assertEquals(Product.class, obj.getClass());
  Product pojo = (Product)obj;
  Assert.assertEquals(2, pojo.getId());
  Assert.assertEquals(1, pojo.getPrice());
  Assert.assertEquals("An ice sculpture", pojo.getName());
  Assert.assertEquals(7.0, (double)pojo.getDimensions().get("length"), 0);
}