@Test
public void testConvertFSConfigurationUndefinedYarnSiteConfig()
    throws Exception {

  FSConfigToCSConfigConverterParams params =
      FSConfigToCSConfigConverterParams.Builder.create()
          .withYarnSiteXmlConfig(null)
          .withOutputDirectory(FSConfigConverterTestCommons.OUTPUT_DIR)
          .build();
  expectedException.expect(PreconditionException.class);
  expectedException.expectMessage(
      "yarn-site.xml configuration is not defined");
  converter.convert(params);
}