Program: 176153
Project: 176153
Buggy source:
@Test public void test(){
  try {
    KsDef ksDef=CassandraCli.client.describe_keyspace(keyspaceName);
    Assert.assertNotNull(ksDef);
    Assert.assertEquals(keyspaceName,ksDef.getName());
    Assert.assertEquals(SimpleStrategy.class.getName(),ksDef.getStrategy_class());
    Assert.assertEquals("String_Node_Str",ksDef.getStrategy_options().get("String_Node_Str"));
    Assert.assertTrue(ksDef.isDurable_writes());
    Assert.assertNotNull(ksDef.getCf_defs());
    Assert.assertNotNull(ksDef.getStrategy_options());
    Assert.assertEquals(8,ksDef.getCf_defsSize());
    for (    CfDef cfDef : ksDef.getCf_defs()) {
      Assert.assertNotNull(cfDef);
      if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals("String_Node_Str",cfDef.getName());
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertFalse(cfDef.getComment().isEmpty());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getComparator_type());
        Assert.assertNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(2,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
        Assert.assertTrue(cfDef.isReplicate_on_write());
        Assert.assertEquals(16,cfDef.getMin_compaction_threshold());
        Assert.assertEquals(64,cfDef.getMax_compaction_threshold());
      }
 else       if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertTrue(cfDef.getComment().isEmpty());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getComparator_type());
        Assert.assertNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(2,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
        Assert.assertTrue(cfDef.isReplicate_on_write());
        Assert.assertEquals(4,cfDef.getMin_compaction_threshold());
        Assert.assertEquals(32,cfDef.getMax_compaction_threshold());
      }
 else       if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertTrue(cfDef.getComment().isEmpty());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getComparator_type());
        Assert.assertNotNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getSubcomparator_type());
        Assert.assertEquals(0,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
      }
 else       if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals("String_Node_Str",cfDef.getName());
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertFalse(cfDef.getComment().isEmpty());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getComparator_type());
        Assert.assertNotNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getSubcomparator_type());
        Assert.assertEquals(0,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
      }
 else {
      }
    }
  }
 catch (  NotFoundException nfe) {
    Assert.fail();
    logger.error("String_Node_Str",nfe.getMessage());
  }
catch (  InvalidRequestException ire) {
    Assert.fail();
    logger.error("String_Node_Str",ire.getMessage());
  }
catch (  TException te) {
    Assert.fail();
    logger.error("String_Node_Str",te.getMessage());
  }
}

Fixed version (ground truth):
@Test public void test(){
  try {
    KsDef ksDef=CassandraCli.client.describe_keyspace(keyspaceName);
    Assert.assertNotNull(ksDef);
    Assert.assertEquals(keyspaceName,ksDef.getName());
    Assert.assertEquals(SimpleStrategy.class.getName(),ksDef.getStrategy_class());
    Assert.assertEquals("String_Node_Str",ksDef.getStrategy_options().get("String_Node_Str"));
    Assert.assertTrue(ksDef.isDurable_writes());
    Assert.assertNotNull(ksDef.getCf_defs());
    Assert.assertNotNull(ksDef.getStrategy_options());
    Assert.assertEquals(10,ksDef.getCf_defsSize());
    for (    CfDef cfDef : ksDef.getCf_defs()) {
      Assert.assertNotNull(cfDef);
      if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals("String_Node_Str",cfDef.getName());
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertFalse(cfDef.getComment().isEmpty());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getComparator_type());
        Assert.assertNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(2,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
        Assert.assertTrue(cfDef.isReplicate_on_write());
        Assert.assertEquals(16,cfDef.getMin_compaction_threshold());
        Assert.assertEquals(64,cfDef.getMax_compaction_threshold());
      }
 else       if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertTrue(cfDef.getComment().isEmpty());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getComparator_type());
        Assert.assertNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(2,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
        Assert.assertTrue(cfDef.isReplicate_on_write());
        Assert.assertEquals(4,cfDef.getMin_compaction_threshold());
        Assert.assertEquals(32,cfDef.getMax_compaction_threshold());
      }
 else       if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertTrue(cfDef.getComment().isEmpty());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getComparator_type());
        Assert.assertNotNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(UTF8Type.class.getName(),cfDef.getSubcomparator_type());
        Assert.assertEquals(0,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
      }
 else       if ("String_Node_Str".equals(cfDef.getName())) {
        Assert.assertEquals("String_Node_Str",cfDef.getName());
        Assert.assertEquals(keyspaceName,cfDef.getKeyspace());
        Assert.assertEquals("String_Node_Str",cfDef.getColumn_type());
        Assert.assertFalse(cfDef.getComment().isEmpty());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getComparator_type());
        Assert.assertNotNull(cfDef.getSubcomparator_type());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getSubcomparator_type());
        Assert.assertEquals(0,cfDef.getColumn_metadataSize());
        Assert.assertEquals(BytesType.class.getName(),cfDef.getDefault_validation_class());
      }
 else {
      }
    }
  }
 catch (  NotFoundException nfe) {
    Assert.fail();
    logger.error("String_Node_Str",nfe.getMessage());
  }
catch (  InvalidRequestException ire) {
    Assert.fail();
    logger.error("String_Node_Str",ire.getMessage());
  }
catch (  TException te) {
    Assert.fail();
    logger.error("String_Node_Str",te.getMessage());
  }
}