Program: 124580
Project: 124580
Buggy source:
@Test public void testEMRApache103Distribution() throws Exception {
  HadoopComponent distribution=new EMRApache103Distribution();
  assertNotNull(distribution.getDistributionName());
  assertNotNull(distribution.getVersionName(null));
  assertFalse(distribution.doSupportS3());
  assertEquals(EMRApache103Distribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertEquals(EMRApache103Distribution.VERSION,distribution.getVersion());
  assertEquals(EHadoopVersion.HADOOP_1,distribution.getHadoopVersion());
  assertTrue(distribution.doSupportKerberos());
  assertFalse(distribution.doSupportUseDatanodeHostname());
  assertFalse(distribution.doSupportGroup());
  assertTrue(distribution.doSupportOldImportMode());
  assertFalse(((HDFSComponent)distribution).doSupportSequenceFileShortType());
  assertFalse(((MRComponent)distribution).isExecutedThroughWebHCat());
  assertFalse(((MRComponent)distribution).doSupportCrossPlatformSubmission());
  assertFalse(((MRComponent)distribution).doSupportImpersonation());
  assertEquals(EMPTY,((MRComponent)distribution).getYarnApplicationClasspath());
  assertFalse(((HBaseComponent)distribution).doSupportNewHBaseAPI());
  assertFalse(distribution instanceof SqoopComponent);
  assertFalse(((PigComponent)distribution).doSupportHCatalog());
  assertFalse(((PigComponent)distribution).pigVersionPriorTo_0_12());
  assertTrue(((PigComponent)distribution).doSupportHBase());
  assertFalse(((PigComponent)distribution).doSupportTezForPig());
  assertTrue(((HiveComponent)distribution).doSupportEmbeddedMode());
  assertTrue(((HiveComponent)distribution).doSupportStandaloneMode());
  assertTrue(((HiveComponent)distribution).doSupportHive1());
  assertFalse(((HiveComponent)distribution).doSupportHive2());
  assertFalse(((HiveComponent)distribution).doSupportTezForHive());
  assertTrue(((HiveComponent)distribution).doSupportHBaseForHive());
  assertFalse(((HiveComponent)distribution).doSupportSSL());
  assertFalse(((HiveComponent)distribution).doSupportORCFormat());
  assertFalse(((HiveComponent)distribution).doSupportAvroFormat());
  assertTrue(((HiveComponent)distribution).doSupportParquetFormat());
  assertFalse(((HiveComponent)distribution).doSupportStoreAsParquet());
  assertFalse(((HiveComponent)distribution).doSupportClouderaNavigator());
  assertFalse(distribution instanceof SparkBatchComponent);
  assertFalse(distribution instanceof SparkStreamingComponent);
  assertFalse(distribution instanceof HCatalogComponent);
  assertFalse(distribution instanceof ImpalaComponent);
  assertTrue(distribution.doSupportCreateServiceConnection());
  assertTrue((distribution.getNecessaryServiceName() == null ? 0 : distribution.getNecessaryServiceName().size()) == 0);
}

Fixed version (ground truth):
@Test public void testEMRApache103Distribution() throws Exception {
  HadoopComponent distribution=new EMRApache103Distribution();
  assertNotNull(distribution.getDistributionName());
  assertNotNull(distribution.getVersionName(null));
  assertFalse(distribution.doSupportS3());
  assertEquals(EMRApache103Distribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertEquals(EMRApache103Distribution.VERSION,distribution.getVersion());
  assertEquals(EHadoopVersion.HADOOP_1,distribution.getHadoopVersion());
  assertFalse(distribution.doSupportKerberos());
  assertFalse(distribution.doSupportUseDatanodeHostname());
  assertFalse(distribution.doSupportGroup());
  assertTrue(distribution.doSupportOldImportMode());
  assertFalse(((HDFSComponent)distribution).doSupportSequenceFileShortType());
  assertFalse(((MRComponent)distribution).isExecutedThroughWebHCat());
  assertFalse(((MRComponent)distribution).doSupportCrossPlatformSubmission());
  assertFalse(((MRComponent)distribution).doSupportImpersonation());
  assertEquals(EMPTY,((MRComponent)distribution).getYarnApplicationClasspath());
  assertFalse(((HBaseComponent)distribution).doSupportNewHBaseAPI());
  assertFalse(distribution instanceof SqoopComponent);
  assertFalse(((PigComponent)distribution).doSupportHCatalog());
  assertFalse(((PigComponent)distribution).pigVersionPriorTo_0_12());
  assertTrue(((PigComponent)distribution).doSupportHBase());
  assertFalse(((PigComponent)distribution).doSupportTezForPig());
  assertTrue(((HiveComponent)distribution).doSupportEmbeddedMode());
  assertTrue(((HiveComponent)distribution).doSupportStandaloneMode());
  assertTrue(((HiveComponent)distribution).doSupportHive1());
  assertFalse(((HiveComponent)distribution).doSupportHive2());
  assertFalse(((HiveComponent)distribution).doSupportTezForHive());
  assertTrue(((HiveComponent)distribution).doSupportHBaseForHive());
  assertFalse(((HiveComponent)distribution).doSupportSSL());
  assertFalse(((HiveComponent)distribution).doSupportORCFormat());
  assertFalse(((HiveComponent)distribution).doSupportAvroFormat());
  assertTrue(((HiveComponent)distribution).doSupportParquetFormat());
  assertFalse(((HiveComponent)distribution).doSupportStoreAsParquet());
  assertFalse(((HiveComponent)distribution).doSupportClouderaNavigator());
  assertFalse(distribution instanceof SparkBatchComponent);
  assertFalse(distribution instanceof SparkStreamingComponent);
  assertFalse(distribution instanceof HCatalogComponent);
  assertFalse(distribution instanceof ImpalaComponent);
  assertTrue(distribution.doSupportCreateServiceConnection());
  assertTrue((distribution.getNecessaryServiceName() == null ? 0 : distribution.getNecessaryServiceName().size()) == 0);
}