@BeforeClass
  public static void setupPulsePropertyFile() throws Exception {
    // put the pulse.properties to the locator's working dir. Pulse will use the locator's working
    // dir as classpath to search for this property file
    pulsePropertyFile = new File(locator.getWorkingDir(), "pulse.properties");
    Properties properties = new Properties();
    properties.setProperty("pulse.oauth.providerId", "uaa");
    properties.setProperty("pulse.oauth.providerName", "UAA");
    properties.setProperty("pulse.oauth.clientId", "pulse");
    properties.setProperty("pulse.oauth.clientSecret", "secret");
    // have the authorization uri point to a known uri that locator itself can serve
    properties.setProperty("pulse.oauth.authorizationUri",
        "http://localhost:" + locator.getHttpPort() + "/management");

    properties.store(new FileWriter(pulsePropertyFile), null);
    locator.startLocator();
  }
this test just makes sure the property file in the locator's working dir
gets properly read and used in the oauth security configuration
geode-assembly/src/integrationTest/java/org/apache/geode/tools/pulse/PulseSecurityConfigOAuthProfileTest.java