public LogAggregationFileController getFileControllerForWrite() {
    return controllers.getFirst();
  }
@Test
  void testNodemanagerConfigurationIsUsed() {
    Configuration conf = getConf();
    conf.set(LOG_AGGREGATION_FILE_FORMATS, "TFile");
    LogAggregationFileControllerFactory factory =
        new LogAggregationFileControllerFactory(conf);
    LogAggregationFileController fc = factory.getFileControllerForWrite();

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