public LogAggregationFileController getFileControllerForWrite() {
    return controllers.getFirst();
  }
@Test
  void testClassConfUsed() {
    enableFileControllers(getConf(), Collections.singletonList(LogAggregationTFileController.class),
        Collections.singletonList("TFile"));
    LogAggregationFileControllerFactory factory =
        new LogAggregationFileControllerFactory(getConf());
    LogAggregationFileController fc = factory.getFileControllerForWrite();

    assertEquals("target/app-logs/TFile",
        fc.getRemoteRootLogDir().toString(),
        WRONG_ROOT_LOG_DIR_MSG);
    assertEquals("TFile",
        fc.getRemoteRootLogDirSuffix(),
        WRONG_ROOT_LOG_DIR_SUFFIX_MSG);
  }