@Test
public void testFairSchedulerXmlIsNotDefinedNeitherDirectlyNorInYarnSiteXml()
    throws Exception {

  FSConfigToCSConfigConverterParams params =
      createParamsBuilder(YARN_SITE_XML_NO_REF_TO_FS_XML)
      .withClusterResource(CLUSTER_RESOURCE_STRING)
      .build();
  expectedException.expect(PreconditionException.class);
  expectedException.expectMessage("fair-scheduler.xml is not defined");
  converter.convert(params);
}