private void createCacheWithoutLogFile() {
    Properties config = new Properties();
    config.setProperty(LOCATORS, "");

    cache = (InternalCache) new CacheFactory(config).create();

    managementService =
        (SystemManagementService) ManagementService.getExistingManagementService(cache);
    await().until(() -> managementService.getMemberMXBean() != null);
    memberMXBean = managementService.getMemberMXBean();
    assertThat(memberMXBean).isNotNull();
  }
Integration tests for {@link MemberMXBean} with just a {@link Cache}.
geode-core/src/integrationTest/java/org/apache/geode/management/MemberMXBeanShowLogIntegrationTest.java