@Test
public void testClassConfUsed() {

  enableFileControllers(Collections.singletonList(
      LogAggregationTFileController.class),
      Collections.singletonList("TFile"));
  LogAggregationFileControllerFactory factory =
      new LogAggregationFileControllerFactory(getConf());
  LogAggregationFileController fc = factory.getFileControllerForWrite();
  assertEquals(WRONG_ROOT_LOG_DIR_MSG, "target/app-logs/TFile",
      fc.getRemoteRootLogDir().toString());
  assertEquals(WRONG_ROOT_LOG_DIR_SUFFIX_MSG, "TFile",
      fc.getRemoteRootLogDirSuffix());
}