private void waitForNotificationListenerOnVm(final VM vm, final long wait) {
    vm.invoke(() -> await("Awaiting Notification Listener")
        .untilAsserted(() -> assertThat(notificationListener.getNotificationSize() > 0).isTrue()));
  }
Waits to receive MBean notifications.

@param vm a virtual machine.
@param wait how long to wait for in millis.
geode-core/src/distributedTest/java/org/apache/geode/management/OffHeapManagementDUnitTest.java