private void assertValueType(VM vm, final ValueType expectedType) {
    vm.invoke("assertValueType", () -> {
      Cache cache = ClusterStartupRule.getCache();
      assertThat(cache).isNotNull();
      InternalRegion region = (InternalRegion) cache.getRegion(TEST_REGION_NAME);
      Object value = region.getValueInVM(DeltaForceSizingFlagDUnitTest.DELTA_KEY);
      switch (expectedType) {
        case RAW_VALUE:
          assertThat(value).isNotInstanceOf(CachedDeserializable.class);
          break;
        case CD_SERIALIZED:
          assertThat(value).isInstanceOf(CachedDeserializable.class);

          Object serializedValue = ((CachedDeserializable) value).getValue();
          assertThat(serializedValue).isInstanceOf(byte[].class);
          break;
        case CD_DESERIALIZED:
          assertThat(value).isInstanceOf(CachedDeserializable.class);

          Object deserializedValue = ((CachedDeserializable) value).getValue();
          assertThat(deserializedValue).isNotInstanceOf(byte[].class);
          break;
        case EVICTED:
          assertThat(value).isNull();
          break;
      }
    });
  }
Tests the use of the per-delta "forceRecalculateSize" flag.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DeltaForceSizingFlagDUnitTest.java