public static void putErrorDeltaForReceiver(Integer keys, Long updates, Long errors) {
    Region r = cache.getRegion(REGION_NAME);
    assertTrue("Errors cannot be more than 1/3rd of total udpates", (updates * keys) / 3 > errors);

    for (int i = 0; i < keys; i++) {
      r.create(DELTA_KEY + i, new DeltaTestImpl());
    }

    for (int i = 0; i < keys; i++) {
      for (long j = 0; j < updates; j++) {
        DeltaTestImpl delta = new DeltaTestImpl();
        if (j % 3 == 1) {
          delta.setIntVar(10);
        } else if (j % 3 == 2) {
          delta.setStr("two");
          if (errors != 0) {
            delta.setStr(DeltaTestImpl.ERRONEOUS_STRING_FOR_FROM_DELTA);
            errors--;
          }
        } else {
          delta.setByteArr(new byte[] {11, 22, 33, 44});
          delta.setDoubleVar(5.7);
        }
        r.put(DELTA_KEY + i, delta);
      }
    }
    assertTrue("Error puts not exhausted", errors == 0);
  }
Simulates old value null, entry null
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DeltaPropagationStatsDUnitTest.java