Program: 124601
Project: 124601
Buggy source:
@Test public void testDataproc11Distribution() throws Exception {
  HadoopComponent distribution=new Dataproc11Distribution();
  assertNotNull(distribution.getDistributionName());
  assertNotNull(distribution.getVersionName(null));
  assertTrue(distribution.doSupportS3());
  assertEquals(Dataproc11Distribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertEquals(Dataproc11Distribution.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());
  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());
}

Fixed version (ground truth):
@Test public void testDataproc11Distribution() throws Exception {
  HadoopComponent distribution=new Dataproc11Distribution();
  assertNotNull(distribution.getDistributionName());
  assertNotNull(distribution.getVersionName(null));
  assertTrue(distribution.doSupportS3());
  assertEquals(Dataproc11Distribution.DISTRIBUTION_NAME,distribution.getDistribution());
  assertEquals(Dataproc11Distribution.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());
  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());
  assertFalse(distribution.doSupportOozie());
}