@Test
public void testAccessDenied() throws Exception {

  // Any StorageRequest will do
  Storage.Objects.List list = newStorage().objects().list(BUCKET_NAME).setPrefix(OBJECT_NAME);
  doThrow(AccessDeniedException.class).when(mockHandler).handleListObjects(any(URI.class));
  StorageRequestAuthorizer authorizer = new StorageRequestAuthorizer(mockHandler);
  assertThrows(AccessDeniedException.class, () -> authorizer.authorize(list));
}