@Test
public void testNodemanagerConfigurationIsUsed() {

  Configuration conf = getConf();
  conf.set(YarnConfiguration.LOG_AGGREGATION_FILE_FORMATS, "TFile");
  LogAggregationFileControllerFactory factory =
      new LogAggregationFileControllerFactory(conf);
  LogAggregationFileController fc = factory.getFileControllerForWrite();
  assertEquals(WRONG_ROOT_LOG_DIR_MSG, "target/app-logs/default",
      fc.getRemoteRootLogDir().toString());
  assertEquals(WRONG_ROOT_LOG_DIR_SUFFIX_MSG, "log-tfile",
      fc.getRemoteRootLogDirSuffix());
}