Program: 48389
Project: 48389
Buggy source:
@BeforeClass(groups={"String_Node_Str"}) public static void setUp() throws Exception {
  service=new ClusterHealService();
  IClusterEntityManager entityMgr=Mockito.mock(IClusterEntityManager.class);
  List<DiskEntity> disks=new ArrayList<DiskEntity>();
  for (int i=0; i < 3; i++) {
    DiskEntity disk=new DiskEntity(DATA_DISK_NAME_PREFIX + i);
    disk.setVmdkPath(LOCAL_DS_MOID_PREFIX + i + "String_Node_Str"+ disk.getName());
    disk.setDatastoreName(LOCAL_DS_NAME_PREFIX + i);
    disk.setDatastoreMoId(LOCAL_DS_MOID_PREFIX + i);
    disk.setSizeInMB(20 * 1024);
    disk.setDiskType(DiskType.SYSTEM_DISK.type);
    DiskEntity spy=Mockito.spy(disk);
    Mockito.when(spy.getId()).thenReturn(new Long(1));
    disks.add(spy);
  }
  Mockito.when(entityMgr.getDisks("String_Node_Str")).thenReturn(disks);
  NodeEntity node=new NodeEntity();
  node.setVmName(NODE_1_NAME);
  node.setHostName(HOST_NAME);
  Mockito.when(entityMgr.findByName(CLUSTER_NAME,NODE_GROUP_NAME,NODE_1_NAME)).thenReturn(node);
  service.setClusterEntityMgr(entityMgr);
  ClusterConfigManager configMgr=Mockito.mock(ClusterConfigManager.class);
  NodeGroupCreate nodeGroup=new NodeGroupCreate();
  nodeGroup.setName(NODE_GROUP_NAME);
  nodeGroup.setStorage(new StorageRead());
  NodeGroupCreate[] nodeGroups=new NodeGroupCreate[]{nodeGroup};
  ClusterCreate spec=new ClusterCreate();
  spec.setName(CLUSTER_NAME);
  spec.setNodeGroups(nodeGroups);
  Set<String> patterns=new HashSet<String>();
  patterns.add(LOCAL_STORE_PATTERN);
  spec.setLocalDatastorePattern(patterns);
  Mockito.when(configMgr.getClusterConfig(CLUSTER_NAME)).thenReturn(spec);
  service.setConfigMgr(configMgr);
}

Fixed version (ground truth):
@BeforeClass(groups={"String_Node_Str"}) public static void setUp() throws Exception {
  service=new ClusterHealService();
  IClusterEntityManager entityMgr=Mockito.mock(IClusterEntityManager.class);
  NodeEntity node=new NodeEntity();
  node.setVmName(NODE_1_NAME);
  node.setHostName(HOST_NAME);
  node.setStatus(NodeStatus.VM_READY);
  Mockito.when(entityMgr.findByName(CLUSTER_NAME,NODE_GROUP_NAME,NODE_1_NAME)).thenReturn(node);
  service.setClusterEntityMgr(entityMgr);
  List<DiskEntity> disks=new ArrayList<DiskEntity>();
  for (int i=0; i < 3; i++) {
    DiskEntity disk=new DiskEntity(DATA_DISK_NAME_PREFIX + i);
    disk.setVmdkPath(LOCAL_DS_MOID_PREFIX + i + "String_Node_Str"+ disk.getName());
    disk.setDatastoreName(LOCAL_DS_NAME_PREFIX + i);
    disk.setDatastoreMoId(LOCAL_DS_MOID_PREFIX + i);
    disk.setSizeInMB(20 * 1024);
    disk.setDiskType(DiskType.SYSTEM_DISK.type);
    disk.setNodeEntity(node);
    DiskEntity spy=Mockito.spy(disk);
    Mockito.when(spy.getId()).thenReturn(new Long(1));
    disks.add(spy);
  }
  Mockito.when(entityMgr.getDisks(NODE_1_NAME)).thenReturn(disks);
  ClusterConfigManager configMgr=Mockito.mock(ClusterConfigManager.class);
  NodeGroupCreate nodeGroup=new NodeGroupCreate();
  nodeGroup.setName(NODE_GROUP_NAME);
  nodeGroup.setStorage(new StorageRead());
  NodeGroupCreate[] nodeGroups=new NodeGroupCreate[]{nodeGroup};
  ClusterCreate spec=new ClusterCreate();
  spec.setName(CLUSTER_NAME);
  spec.setNodeGroups(nodeGroups);
  Set<String> patterns=new HashSet<String>();
  patterns.add(LOCAL_STORE_PATTERN);
  spec.setLocalDatastorePattern(patterns);
  Mockito.when(configMgr.getClusterConfig(CLUSTER_NAME)).thenReturn(spec);
  service.setConfigMgr(configMgr);
}