@Test
public void testAuthorizationAllowed() throws Exception {

  // Any StorageRequest will do
  Storage.Objects.List list = newStorage().objects().list(BUCKET_NAME).setPrefix(OBJECT_NAME);
  doNothing().when(mockHandler).handleListObjects(any(URI.class));
  StorageRequestAuthorizer authorizer = new StorageRequestAuthorizer(mockHandler);
  authorizer.authorize(list);
  // Nothing should happen when access allowed.
  verify(mockHandler).handleListObjects(any(URI.class));
}