Program: 5695
Project: 5695
Buggy source:
@Test public void testDataset() throws Exception {
  String datasetName=PREFIX + "String_Node_Str";
  DatasetTypeClient datasetTypeClient=new DatasetTypeClient(cliConfig.getClientConfig());
  DatasetTypeMeta datasetType=datasetTypeClient.list(NamespaceId.DEFAULT.toId()).get(0);
  testCommandOutputContains(cli,"String_Node_Str" + datasetType.getName() + "String_Node_Str"+ datasetName+ "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str",FakeDataset.class.getSimpleName());
  testCommandOutputContains(cli,"String_Node_Str" + datasetName,"String_Node_Str");
  NamespaceClient namespaceClient=new NamespaceClient(cliConfig.getClientConfig());
  NamespaceId barspace=new NamespaceId("String_Node_Str");
  namespaceClient.create(new NamespaceMeta.Builder().setName(barspace.toId()).build());
  cliConfig.setNamespace(barspace);
  testCommandOutputNotContains(cli,"String_Node_Str",FakeDataset.class.getSimpleName());
  DatasetTypeId datasetType1=barspace.datasetType(datasetType.getName());
  testCommandOutputContains(cli,"String_Node_Str" + datasetType.getName() + "String_Node_Str"+ datasetName,new DatasetTypeNotFoundException(datasetType1).getMessage());
  testCommandOutputContains(cli,"String_Node_Str","String_Node_Str");
  try {
    testCommandOutputContains(cli,"String_Node_Str" + datasetName,"String_Node_Str");
  }
  finally {
    testCommandOutputContains(cli,"String_Node_Str" + datasetName,"String_Node_Str");
  }
  String datasetName2=PREFIX + "String_Node_Str";
  String description="String_Node_Str" + datasetName2;
  testCommandOutputContains(cli,"String_Node_Str" + datasetType.getName() + "String_Node_Str"+ datasetName2+ "String_Node_Str"+ "String_Node_Str"+ description,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str",description);
  testCommandOutputContains(cli,"String_Node_Str" + datasetName2,"String_Node_Str");
}

Fixed version (ground truth):
@Test public void testDataset() throws Exception {
  String datasetName=PREFIX + "String_Node_Str";
  DatasetTypeClient datasetTypeClient=new DatasetTypeClient(cliConfig.getClientConfig());
  DatasetTypeMeta datasetType=datasetTypeClient.list(NamespaceId.DEFAULT).get(0);
  testCommandOutputContains(cli,"String_Node_Str" + datasetType.getName() + "String_Node_Str"+ datasetName+ "String_Node_Str","String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str",FakeDataset.class.getSimpleName());
  testCommandOutputContains(cli,"String_Node_Str" + datasetName,"String_Node_Str");
  NamespaceClient namespaceClient=new NamespaceClient(cliConfig.getClientConfig());
  NamespaceId barspace=new NamespaceId("String_Node_Str");
  namespaceClient.create(new NamespaceMeta.Builder().setName(barspace).build());
  cliConfig.setNamespace(barspace);
  testCommandOutputNotContains(cli,"String_Node_Str",FakeDataset.class.getSimpleName());
  DatasetTypeId datasetType1=barspace.datasetType(datasetType.getName());
  testCommandOutputContains(cli,"String_Node_Str" + datasetType.getName() + "String_Node_Str"+ datasetName,new DatasetTypeNotFoundException(datasetType1).getMessage());
  testCommandOutputContains(cli,"String_Node_Str","String_Node_Str");
  try {
    testCommandOutputContains(cli,"String_Node_Str" + datasetName,"String_Node_Str");
  }
  finally {
    testCommandOutputContains(cli,"String_Node_Str" + datasetName,"String_Node_Str");
  }
  String datasetName2=PREFIX + "String_Node_Str";
  String description="String_Node_Str" + datasetName2;
  testCommandOutputContains(cli,"String_Node_Str" + datasetType.getName() + "String_Node_Str"+ datasetName2+ "String_Node_Str"+ "String_Node_Str"+ description,"String_Node_Str");
  testCommandOutputContains(cli,"String_Node_Str",description);
  testCommandOutputContains(cli,"String_Node_Str" + datasetName2,"String_Node_Str");
}