private void doPutOnVm(final VM vm, final Object key, final Object value, final String regionName,
      final boolean expectException) {
    vm.invoke(() -> doPut(key, value, regionName, expectException));
  }
Performs a put operation on a vm.

@param vm a virtual machine.
@param key region entry key.
@param value region entry value.
@param regionName a region name.
geode-core/src/distributedTest/java/org/apache/geode/management/OffHeapManagementDUnitTest.java