@Test
  public void objectPersistedRegistration()
      throws IOException, SignatureException, URISyntaxException, XmlProcessingException {
    final String bucketName = "test_bucket";

    try {
      client.putBucket(new PutBucketRequest(bucketName));
      final Ds3ClientHelpers.Job job = Util.getLoadJob(client, bucketName, Util.RESOURCE_BASE_NAME);

      final NotificationResponse response =
          client.createObjectPersistedNotification(
              new CreateObjectPersistedNotificationRequest("192.168.56.101/other", job.getJobId()));
      assertThat(response, is(notNullValue()));
      assertThat(response.getRegistration(), is(notNullValue()));

      job.transfer(new ResourceObjectPutter(Util.RESOURCE_BASE_NAME));

      final UUID registrationId = response.getRegistration().getId();

      final NotificationResponse getResponse =
          client.getObjectPersistedNotification(
              new GetObjectPersistedNotificationRequest(registrationId));
      assertThat(getResponse, is(notNullValue()));
      assertThat(getResponse.getRegistration(), is(notNullValue()));
      assertThat(getResponse.getRegistration().getId(), is(notNullValue()));

      assertThat(
          client.deleteObjectPersistedNotification(
              new DeleteObjectPersistedNotificationRequest(registrationId)),
          is(notNullValue()));
    } finally {
      Util.deleteAllContents(client, bucketName);
    }
  }
 @BeforeClass
 public static void startup() {
   client = Util.fromEnv();
 }