@Test
  public void createProcessController_returnsMBeanProcessController() throws Exception {
    // arrange
    FileUtils.writeStringToFile(pidFile, String.valueOf(pid), Charset.defaultCharset());

    // act
    ProcessController controller =
        factory.createProcessController(parameters, directory, pidFileName);

    // assert
    assertThat(controller).isInstanceOf(MBeanOrFileProcessController.class);
  }
Functional integration tests for {@link ProcessControllerFactory}.
geode-core/src/integrationTest/java/org/apache/geode/internal/process/ProcessControllerFactoryIntegrationTest.java