@Override
 protected void verifyResults() throws Exception {
   DbClient dbClient = getDbClient();
   List<URI> imageUris = dbClient.queryByType(ComputeImage.class, true);
   Iterator<ComputeImage> imageItr = dbClient.queryIterativeObjects(ComputeImage.class, imageUris);
   while (imageItr.hasNext()) {
     ComputeImage image = imageItr.next();
     if (image.getLabel().equalsIgnoreCase(IMAGE_NAME_WITH_PWD)) {
       Assert.assertNotEquals(image.getImageUrl(), urlWithPwd);
     } else if (image.getLabel().equalsIgnoreCase(IMAGE_NAME_WITHOUT_PWD)) {
       Assert.assertEquals(image.getImageUrl(), urlWithoutPwd);
     }
   }
 }
  @Override
  protected void prepareData() throws Exception {
    DbClient dbClient = getDbClient();

    ComputeImage image1 = new ComputeImage();
    image1.setId(URIUtil.createId(ComputeImage.class));
    image1.setLabel(IMAGE_NAME_WITH_PWD);
    image1.setImageUrl(urlWithPwd);
    dbClient.createObject(image1);

    ComputeImage image2 = new ComputeImage();
    image2.setId(URIUtil.createId(ComputeImage.class));
    image2.setLabel(IMAGE_NAME_WITHOUT_PWD);
    image2.setImageUrl(urlWithoutPwd);
    dbClient.createObject(image2);
  }