private void awaitLockServiceMXBeanIsNull(final String lockServiceName) {
    SystemManagementService service = managementTestRule.getSystemManagementService();

    GeodeAwaitility.await().untilAsserted(
        () -> assertThat(service.getLocalLockServiceMBean(lockServiceName)).isNull());
  }
Await destruction of local LockServiceMXBean for specified lockServiceName.
geode-core/src/distributedTest/java/org/apache/geode/management/DLockManagementDUnitTest.java