Program: 124588
Project: 124588
Buggy source:
@Test public void testEMR500Distribution() throws Exception {
  HadoopComponent distribution=new EMR550Distribution();
  assertNotNull(distribution.getDistributionName());
  assertNotNull(distribution.getVersionName(null));
  assertTrue(distribution.doSupportS3());
  assertEquals(EMR550Distribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertEquals(EMR550Distribution.VERSION,distribution.getVersion());
  assertEquals(EHadoopVersion.HADOOP_2,distribution.getHadoopVersion());
  assertFalse(distribution.doSupportKerberos());
  assertTrue(distribution.doSupportUseDatanodeHostname());
  assertFalse(distribution.doSupportGroup());
  assertFalse(distribution.doSupportOldImportMode());
  assertTrue(((HDFSComponent)distribution).doSupportSequenceFileShortType());
  assertFalse(((MRComponent)distribution).isExecutedThroughWebHCat());
  assertTrue(((MRComponent)distribution).doSupportCrossPlatformSubmission());
  assertTrue(((MRComponent)distribution).doSupportImpersonation());
  assertEquals(((MRComponent)distribution).getYarnApplicationClasspath(),DEFAULT_YARN_APPLICATION_CLASSPATH);
  assertTrue(distribution instanceof HBaseComponent);
  assertTrue(distribution instanceof SqoopComponent);
  assertTrue(((PigComponent)distribution).doSupportHCatalog());
  assertFalse(((PigComponent)distribution).pigVersionPriorTo_0_12());
  assertTrue(((PigComponent)distribution).doSupportHBase());
  assertFalse(((PigComponent)distribution).doSupportTezForPig());
  assertFalse(((HiveComponent)distribution).doSupportEmbeddedMode());
  assertTrue(((HiveComponent)distribution).doSupportStandaloneMode());
  assertFalse(((HiveComponent)distribution).doSupportHive1());
  assertTrue(((HiveComponent)distribution).doSupportHive2());
  assertFalse(((HiveComponent)distribution).doSupportTezForHive());
  assertFalse(((HiveComponent)distribution).doSupportHBaseForHive());
  assertTrue(((HiveComponent)distribution).doSupportSSL());
  assertTrue(((HiveComponent)distribution).doSupportORCFormat());
  assertTrue(((HiveComponent)distribution).doSupportAvroFormat());
  assertTrue(((HiveComponent)distribution).doSupportParquetFormat());
  assertTrue(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_0));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_6));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_5));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_4));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_3));
  assertTrue(((SparkBatchComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkBatchComponent)distribution).isExecutedThroughSparkJobServer());
  assertFalse(((SparkBatchComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkBatchComponent)distribution).doSupportSparkYarnClientMode());
  assertTrue(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_0));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_6));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_5));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_4));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_3));
  assertTrue(((SparkStreamingComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkStreamingComponent)distribution).isExecutedThroughSparkJobServer());
  assertTrue(((SparkStreamingComponent)distribution).doSupportCheckpointing());
  assertFalse(((SparkStreamingComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportSparkYarnClientMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportBackpressure());
  assertEquals(SparkStreamingKafkaVersion.KAFKA_0_10,((SparkStreamingComponent)distribution).getSparkStreamingKafkaVersion(ESparkVersion.SPARK_2_1));
  assertTrue(((HiveComponent)distribution).doSupportStoreAsParquet());
  assertFalse(((HiveComponent)distribution).doSupportClouderaNavigator());
  assertTrue(distribution instanceof HCatalogComponent);
  assertFalse(distribution instanceof ImpalaComponent);
  assertTrue(((SqoopComponent)distribution).doJavaAPISqoopImportAllTablesSupportExcludeTable());
  assertTrue(((SqoopComponent)distribution).doJavaAPISqoopImportSupportDeleteTargetDir());
  assertTrue(((SqoopComponent)distribution).doJavaAPISupportStorePasswordInFile());
  assertTrue(((HBaseComponent)distribution).doSupportNewHBaseAPI());
}

Fixed version (ground truth):
@Test public void testEMR500Distribution() throws Exception {
  HadoopComponent distribution=new EMR550Distribution();
  assertNotNull(distribution.getDistributionName());
  assertNotNull(distribution.getVersionName(null));
  assertTrue(distribution.doSupportS3());
  assertEquals(EMR550Distribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertEquals(EMR550Distribution.VERSION,distribution.getVersion());
  assertEquals(EHadoopVersion.HADOOP_2,distribution.getHadoopVersion());
  assertFalse(distribution.doSupportKerberos());
  assertTrue(distribution.doSupportUseDatanodeHostname());
  assertFalse(distribution.doSupportGroup());
  assertFalse(distribution.doSupportOldImportMode());
  assertTrue(((HDFSComponent)distribution).doSupportSequenceFileShortType());
  assertFalse(((MRComponent)distribution).isExecutedThroughWebHCat());
  assertTrue(((MRComponent)distribution).doSupportCrossPlatformSubmission());
  assertTrue(((MRComponent)distribution).doSupportImpersonation());
  assertEquals(((MRComponent)distribution).getYarnApplicationClasspath(),DEFAULT_YARN_APPLICATION_CLASSPATH);
  assertTrue(distribution instanceof HBaseComponent);
  assertTrue(distribution instanceof SqoopComponent);
  assertTrue(((PigComponent)distribution).doSupportHCatalog());
  assertFalse(((PigComponent)distribution).pigVersionPriorTo_0_12());
  assertTrue(((PigComponent)distribution).doSupportHBase());
  assertFalse(((PigComponent)distribution).doSupportTezForPig());
  assertFalse(((HiveComponent)distribution).doSupportEmbeddedMode());
  assertTrue(((HiveComponent)distribution).doSupportStandaloneMode());
  assertFalse(((HiveComponent)distribution).doSupportHive1());
  assertTrue(((HiveComponent)distribution).doSupportHive2());
  assertFalse(((HiveComponent)distribution).doSupportTezForHive());
  assertFalse(((HiveComponent)distribution).doSupportHBaseForHive());
  assertTrue(((HiveComponent)distribution).doSupportSSL());
  assertTrue(((HiveComponent)distribution).doSupportORCFormat());
  assertTrue(((HiveComponent)distribution).doSupportAvroFormat());
  assertTrue(((HiveComponent)distribution).doSupportParquetFormat());
  assertTrue(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_1));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_6));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_5));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_4));
  assertFalse(((SparkBatchComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_3));
  assertTrue(((SparkBatchComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkBatchComponent)distribution).isExecutedThroughSparkJobServer());
  assertFalse(((SparkBatchComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkBatchComponent)distribution).doSupportSparkYarnClientMode());
  assertTrue(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_2_1));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_6));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_5));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_4));
  assertFalse(((SparkStreamingComponent)distribution).getSparkVersions().contains(ESparkVersion.SPARK_1_3));
  assertTrue(((SparkStreamingComponent)distribution).doSupportDynamicMemoryAllocation());
  assertFalse(((SparkStreamingComponent)distribution).isExecutedThroughSparkJobServer());
  assertTrue(((SparkStreamingComponent)distribution).doSupportCheckpointing());
  assertFalse(((SparkStreamingComponent)distribution).doSupportSparkStandaloneMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportSparkYarnClientMode());
  assertTrue(((SparkStreamingComponent)distribution).doSupportBackpressure());
  assertEquals(SparkStreamingKafkaVersion.KAFKA_0_10,((SparkStreamingComponent)distribution).getSparkStreamingKafkaVersion(ESparkVersion.SPARK_2_1));
  assertTrue(((HiveComponent)distribution).doSupportStoreAsParquet());
  assertFalse(((HiveComponent)distribution).doSupportClouderaNavigator());
  assertTrue(distribution instanceof HCatalogComponent);
  assertFalse(distribution instanceof ImpalaComponent);
  assertTrue(((SqoopComponent)distribution).doJavaAPISqoopImportAllTablesSupportExcludeTable());
  assertTrue(((SqoopComponent)distribution).doJavaAPISqoopImportSupportDeleteTargetDir());
  assertTrue(((SqoopComponent)distribution).doJavaAPISupportStorePasswordInFile());
  assertTrue(((HBaseComponent)distribution).doSupportNewHBaseAPI());
}