@Test
public void testGetObject() throws Exception {

  Storage.Objects.Get get = newStorage().objects().get(BUCKET_NAME, OBJECT_NAME);
  StorageRequestAuthorizer authorizer = new StorageRequestAuthorizer(mockHandler);
  authorizer.authorize(get);
  ArgumentCaptor<URI> captor = ArgumentCaptor.forClass(URI.class);
  verify(mockHandler).handleGetObject(captor.capture());
  assertThat(captor.getValue().getAuthority()).isEqualTo(BUCKET_NAME);
  assertThat(captor.getValue().getPath()).isEqualTo(OBJECT_NAME);
}