Program: 6898
Project: 6898
Buggy source:
@Test public void testBasics() throws Exception {
  List<DatasetSpecificationSummary> instances=getInstances().getResponseObject();
  Assert.assertEquals(0,instances.size());
  try {
    DatasetProperties props=DatasetProperties.builder().add("String_Node_Str","String_Node_Str").build();
    Assert.assertEquals(HttpStatus.SC_NOT_FOUND,createInstance("String_Node_Str","String_Node_Str",props));
    deployModule("String_Node_Str",TestModule1.class);
    deployModule("String_Node_Str",TestModule2.class);
    Assert.assertEquals(HttpStatus.SC_OK,createInstance("String_Node_Str","String_Node_Str",props));
    int modulesBeforeDelete=getModules().getResponseObject().size();
    Assert.assertEquals(HttpStatus.SC_CONFLICT,deleteModule("String_Node_Str"));
    Assert.assertEquals(HttpStatus.SC_CONFLICT,deleteModules());
    Assert.assertEquals(modulesBeforeDelete,getModules().getResponseObject().size());
    instances=getInstances().getResponseObject();
    Assert.assertEquals(1,instances.size());
    DatasetSpecification dataset1Spec=createSpec("String_Node_Str","String_Node_Str",props);
    Assert.assertEquals(spec2Summary(dataset1Spec),instances.get(0));
    DatasetMeta datasetInfo=getInstanceObject("String_Node_Str").getResponseObject();
    Assert.assertEquals(dataset1Spec,datasetInfo.getSpec());
    Assert.assertEquals(dataset1Spec.getType(),datasetInfo.getType().getName());
    List<DatasetModuleMeta> modules=datasetInfo.getType().getModules();
    Assert.assertEquals(2,modules.size());
    DatasetTypeHandlerTest.verify(modules.get(0),"String_Node_Str",TestModule1.class,ImmutableList.of("String_Node_Str"),Collections.<String>emptyList(),ImmutableList.of("String_Node_Str"));
    DatasetTypeHandlerTest.verify(modules.get(1),"String_Node_Str",TestModule2.class,ImmutableList.of("String_Node_Str"),ImmutableList.of("String_Node_Str"),Collections.<String>emptyList());
    Assert.assertEquals(HttpStatus.SC_NOT_FOUND,getInstance("String_Node_Str").getResponseCode());
    Assert.assertEquals(HttpStatus.SC_CONFLICT,createInstance("String_Node_Str","String_Node_Str",props));
    Assert.assertEquals(1,getInstances().getResponseObject().size());
    Assert.assertEquals(HttpStatus.SC_NOT_FOUND,deleteInstance("String_Node_Str"));
    Assert.assertEquals(1,getInstances().getResponseObject().size());
  }
  finally {
    Assert.assertEquals(HttpStatus.SC_OK,deleteInstance("String_Node_Str"));
    Assert.assertEquals(0,getInstances().getResponseObject().size());
    Assert.assertEquals(HttpStatus.SC_OK,deleteModule("String_Node_Str"));
    Assert.assertEquals(HttpStatus.SC_OK,deleteModule("String_Node_Str"));
  }
}

Fixed version (ground truth):
@Test public void testBasics() throws Exception {
  List<DatasetSpecificationSummary> instances=getInstances().getResponseObject();
  Assert.assertEquals(0,instances.size());
  try {
    DatasetProperties props=DatasetProperties.builder().add("String_Node_Str","String_Node_Str").build();
    Assert.assertEquals(HttpStatus.SC_NOT_FOUND,createInstance("String_Node_Str","String_Node_Str",props));
    deployModule("String_Node_Str",TestModule1.class);
    deployModule("String_Node_Str",TestModule2.class);
    Assert.assertEquals(HttpStatus.SC_OK,createInstance("String_Node_Str","String_Node_Str",props));
    int modulesBeforeDelete=getModules().getResponseObject().size();
    Assert.assertEquals(HttpStatus.SC_CONFLICT,deleteModule("String_Node_Str"));
    Assert.assertEquals(HttpStatus.SC_CONFLICT,deleteModules());
    Assert.assertEquals(modulesBeforeDelete,getModules().getResponseObject().size());
    instances=getInstances().getResponseObject();
    Assert.assertEquals(1,instances.size());
    DatasetSpecification dataset1Spec=createSpec("String_Node_Str","String_Node_Str",props);
    Assert.assertEquals(spec2Summary(dataset1Spec),instances.get(0));
    DatasetMeta datasetInfo=getInstanceObject("String_Node_Str").getResponseObject();
    Assert.assertEquals(dataset1Spec,datasetInfo.getSpec());
    Assert.assertEquals(dataset1Spec.getType(),datasetInfo.getType().getName());
    List<DatasetModuleMeta> modules=datasetInfo.getType().getModules();
    Assert.assertEquals(2,modules.size());
    DatasetTypeHandlerTest.verify(modules.get(0),"String_Node_Str",TestModule1.class,ImmutableList.of("String_Node_Str"),Collections.<String>emptyList(),ImmutableList.of("String_Node_Str"));
    DatasetTypeHandlerTest.verify(modules.get(1),"String_Node_Str",TestModule2.class,ImmutableList.of("String_Node_Str"),ImmutableList.of("String_Node_Str"),Collections.<String>emptyList());
    Assert.assertEquals(HttpStatus.SC_NOT_FOUND,getInstance("String_Node_Str").getResponseCode());
    Assert.assertEquals(HttpStatus.SC_CONFLICT,createInstance("String_Node_Str","String_Node_Str",props));
    Assert.assertEquals(1,getInstances().getResponseObject().size());
    Assert.assertEquals(HttpStatus.SC_NOT_FOUND,deleteInstance("String_Node_Str"));
    Assert.assertEquals(1,getInstances().getResponseObject().size());
    Assert.assertEquals(HttpStatus.SC_OK,createInstance("String_Node_Str","String_Node_Str"));
  }
  finally {
    Assert.assertEquals(HttpStatus.SC_OK,deleteInstance("String_Node_Str"));
    Assert.assertEquals(HttpStatus.SC_OK,deleteInstance("String_Node_Str"));
    Assert.assertEquals(0,getInstances().getResponseObject().size());
    Assert.assertEquals(HttpStatus.SC_OK,deleteModule("String_Node_Str"));
    Assert.assertEquals(HttpStatus.SC_OK,deleteModule("String_Node_Str"));
  }
}