@Test
  public void getSecurityPropertiesFileUrlShouldUsePathInSystemProperty() throws Exception {
    File propertiesFile = temporaryFolder.newFile("testsecurity.properties");
    System.setProperty(SECURITY_PROPERTIES_FILE_PROPERTY, propertiesFile.getCanonicalPath());
    new Properties().store(new FileWriter(propertiesFile, false), testName.getMethodName());
    URL expectedPropertiesURL = propertiesFile.getCanonicalFile().toURI().toURL();

    URL value = DistributedSystem.getSecurityPropertiesFileURL();

    assertThat(value).isEqualTo(expectedPropertiesURL);
  }
Integration tests for DistributedSystem class. These tests require file system I/O.
geode-core/src/integrationTest/java/org/apache/geode/distributed/DistributedSystemIntegrationTest.java