private void prepareProtectionSetWithAllStaleVolumes() throws Exception {
  String cgName="staleVolumeTest";
  ProtectionSet protectionSet=createProtectionSet(cgName,projectURI);
  staleProtectionSetURI=protectionSet.getId();
  URI volumeURI1=URIUtil.createId(Volume.class);
  URI volumeURI2=URIUtil.createId(Volume.class);
  URI volumeURI3=URIUtil.createId(Volume.class);
  StringSet volumes=new StringSet();
  volumes.add(volumeURI1.toString());
  volumes.add(volumeURI2.toString());
  volumes.add(volumeURI3.toString());
  protectionSet.setVolumes(volumes);
  _dbClient.persistObject(protectionSet);
}

private void prepareProtectionSetWithAllStaleVolumes ( ) throws Exception { String cgName = "staleVolumeTest" ; ProtectionSet protectionSet = createProtectionSet ( cgName , projectURI ) ; staleProtectionSetURI = protectionSet . getId ( ) ; URI volumeURI1 = URIUtil . createId ( Volume . class ) ; URI volumeURI2 = URIUtil . createId ( Volume . class ) ; URI volumeURI3 = URIUtil . createId ( Volume . class ) ; StringSet volumes = new StringSet ( ) ; volumes . add ( volumeURI1 . toString ( ) ) ; volumes . add ( volumeURI2 . toString ( ) ) ; volumes . add ( volumeURI3 . toString ( ) ) ; protectionSet . setVolumes ( volumes ) ; _dbClient . persistObject ( protectionSet ) ; }
prepares a protectionset with volume references to volumes that do not exist in the db .
