@Test
  public void showLogDefault() {
    createCacheWithLogFile();

    String log = memberMXBean.showLog(DEFAULT_SHOW_LOG_LINES);

    // splitting on lineSeparator() results in a length near 30
    assertThat(log.split(lineSeparator()).length).as("Log: " + log).isGreaterThan(25)
        .isLessThan(35);
  }
Integration tests for {@link MemberMXBean} with just a {@link Cache}.
geode-core/src/integrationTest/java/org/apache/geode/management/MemberMXBeanShowLogIntegrationTest.java