Program: 63197
Project: 63197
Buggy source:
@Test public void testNewProject() throws Exception {
  int originalProjectCount=ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size();
  int originalCubeCount=CubeManager.getInstance(this.getTestConfig()).listAllCubes().size();
  int originalCubeCountInDefault=ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size();
  ResourceStore store=getStore();
  store.deleteResource("String_Node_Str");
  CubeDescManager cubeDescMgr=getCubeDescManager();
  CubeDesc desc=cubeDescMgr.getCubeDesc("String_Node_Str");
  CubeInstance createdCube=CubeManager.getInstance(this.getTestConfig()).createCube("String_Node_Str","String_Node_Str",desc,null);
  assertTrue(createdCube == CubeManager.getInstance(this.getTestConfig()).getCube("String_Node_Str"));
  assertTrue(ProjectManager.getInstance(getTestConfig()).listAllRealizations("String_Node_Str").contains(createdCube));
  System.out.println(JsonUtil.writeValueAsIndentString(createdCube));
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size() == originalProjectCount + 1);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").get(0).getName().equalsIgnoreCase("String_Node_Str"));
  assertTrue(CubeManager.getInstance(this.getTestConfig()).listAllCubes().size() == originalCubeCount + 1);
  ProjectManager.getInstance(this.getTestConfig()).updateRealizationToProject(RealizationType.CUBE,"String_Node_Str","String_Node_Str",null);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == 0);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == originalCubeCountInDefault + 1);
  assertTrue(ProjectManager.getInstance(getTestConfig()).listAllRealizations("String_Node_Str").contains(createdCube));
  ProjectManager.getInstance(this.getTestConfig()).updateRealizationToProject(RealizationType.CUBE,"String_Node_Str","String_Node_Str",null);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == 1);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == originalCubeCountInDefault);
  assertTrue(ProjectManager.getInstance(getTestConfig()).listAllRealizations("String_Node_Str").contains(createdCube));
  CubeInstance droppedCube=CubeManager.getInstance(this.getTestConfig()).dropCube("String_Node_Str",true);
  assertTrue(createdCube == droppedCube);
  assertNull(CubeManager.getInstance(this.getTestConfig()).getCube("String_Node_Str"));
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size() == originalProjectCount + 1);
  assertTrue(CubeManager.getInstance(this.getTestConfig()).listAllCubes().size() == originalCubeCount);
  ProjectManager.getInstance(this.getTestConfig()).dropProject("String_Node_Str");
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size() == originalProjectCount);
}

Fixed version (ground truth):
@Test public void testNewProject() throws Exception {
  int originalProjectCount=ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size();
  int originalCubeCount=CubeManager.getInstance(this.getTestConfig()).listAllCubes().size();
  int originalCubeCountInDefault=ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size();
  ResourceStore store=getStore();
  store.deleteResource("String_Node_Str");
  CubeDescManager cubeDescMgr=getCubeDescManager();
  CubeDesc desc=cubeDescMgr.getCubeDesc("String_Node_Str");
  CubeInstance createdCube=CubeManager.getInstance(this.getTestConfig()).createCube("String_Node_Str","String_Node_Str",desc,null);
  assertTrue(createdCube == CubeManager.getInstance(this.getTestConfig()).getCube("String_Node_Str"));
  assertTrue(ProjectManager.getInstance(getTestConfig()).listAllRealizations("String_Node_Str").contains(createdCube));
  System.out.println(JsonUtil.writeValueAsIndentString(createdCube));
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size() == originalProjectCount + 1);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").get(0).getName().equalsIgnoreCase("String_Node_Str"));
  assertTrue(CubeManager.getInstance(this.getTestConfig()).listAllCubes().size() == originalCubeCount + 1);
  ProjectManager.getInstance(this.getTestConfig()).moveRealizationToProject(RealizationType.CUBE,"String_Node_Str","String_Node_Str",null);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == 0);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == originalCubeCountInDefault + 1);
  assertTrue(ProjectManager.getInstance(getTestConfig()).listAllRealizations("String_Node_Str").contains(createdCube));
  ProjectManager.getInstance(this.getTestConfig()).moveRealizationToProject(RealizationType.CUBE,"String_Node_Str","String_Node_Str",null);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == 1);
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllRealizations("String_Node_Str").size() == originalCubeCountInDefault);
  assertTrue(ProjectManager.getInstance(getTestConfig()).listAllRealizations("String_Node_Str").contains(createdCube));
  CubeInstance droppedCube=CubeManager.getInstance(this.getTestConfig()).dropCube("String_Node_Str",true);
  assertTrue(createdCube == droppedCube);
  assertNull(CubeManager.getInstance(this.getTestConfig()).getCube("String_Node_Str"));
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size() == originalProjectCount + 1);
  assertTrue(CubeManager.getInstance(this.getTestConfig()).listAllCubes().size() == originalCubeCount);
  ProjectManager.getInstance(this.getTestConfig()).dropProject("String_Node_Str");
  assertTrue(ProjectManager.getInstance(this.getTestConfig()).listAllProjects().size() == originalProjectCount);
}