@Test(expected = SamzaException.class)
  public void testDeserializeContainerModelMissingProcessorIdAndContainerId() throws IOException {
    ObjectNode jobModelJson = buildJobModelJson();
    ObjectNode containerModelJson = (ObjectNode) jobModelJson.get("containers").get("1");
    containerModelJson.remove("processor-id");
    deserializeFromObjectNode(jobModelJson);
  }
Given a {@link ContainerModel} JSON with neither a processor-id nor a container-id, deserialization should fail.
samza-core/src/test/java/org/apache/samza/serializers/model/TestSamzaObjectMapper.java