@Test(expected = SamzaException.class)
  public void testDeserializeContainerModelIdFieldOnly() throws IOException {
    ObjectNode jobModelJson = buildJobModelJson();
    ObjectNode containerModelJson = (ObjectNode) jobModelJson.get("containers").get("1");
    containerModelJson.remove("processor-id");
    containerModelJson.put("id", 1);
    deserializeFromObjectNode(jobModelJson);
  }
Given a {@link ContainerModel} JSON with only an "id" field, deserialization should fail.
This verifies that even though {@link ContainerModel} has a getId method, the "id" field is not used, since
"processor-id" is the field that is supposed to be used.
samza-core/src/test/java/org/apache/samza/serializers/model/TestSamzaObjectMapper.java