@Test
  public void testClientDeltaPropogationPutFetchesTheLatestValueWhenClientVersionIsOlder()
      throws Exception {
    // client did not register interest
    Integer PORT1 = server.invoke(() -> ClientToServerDeltaDUnitTest
        .createServerCache(Boolean.TRUE, Boolean.FALSE, Boolean.TRUE, Boolean.TRUE));

    ClientToServerDeltaDUnitTest.createClientCache(
        NetworkUtils.getServerHostName(server.getHost()), new Integer(PORT1), Boolean.FALSE,
        Boolean.FALSE, Boolean.FALSE, null, Boolean.FALSE);
    Region r = cache.getRegion(REGION_NAME);
    DeltaTestImpl val = new DeltaTestImpl(0, "0", (double) 0, new byte[0],
        new TestObjectWithIdentifier("0", 0));
    r.put(KEY1, val);

    server.invoke(() -> {
      Region region = cache.getRegion(REGION_NAME);
      DeltaTestImpl val1 = (DeltaTestImpl) region.get(KEY1);
      DeltaTestImpl.NEED_TO_RESET_T0_DELTA = false;
      val1.setIntVar(1);
      region.put(KEY1, val1);
    });

    DeltaTestImpl val2 = new DeltaTestImpl(0, "0", (double) 0, new byte[0],
        new TestObjectWithIdentifier("0", 0));
    val2.setStr("1");
    DeltaTestImpl.NEED_TO_RESET_T0_DELTA = false;
    r.put(KEY1, val2);

    server.invoke(() -> {
      Region region = cache.getRegion(REGION_NAME);
      assertThat((DeltaTestImpl) region.get(KEY1)).isNotNull();
    });

    DeltaTestImpl expected = new DeltaTestImpl(1, "1", (double) 0, new byte[0],
        new TestObjectWithIdentifier("0", 0));

    server.invoke(() -> {
      Region region = cache.getRegion(REGION_NAME);
      GeodeAwaitility.await()
          .untilAsserted(() -> assertThat((DeltaTestImpl) region.get(KEY1)).isEqualTo(expected));
    });

    GeodeAwaitility.await()
        .untilAsserted(() -> assertThat((DeltaTestImpl) r.get(KEY1)).isEqualTo(expected));
  }
This test does the following for single key (<b> full cycle</b>):<br>
1)Verifies that client-server, peer-peer and server-client processing delta<br>
geode-cq/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/ClientToServerDeltaDUnitTest.java