@Test
public void toUserPresentableException_actionAsNull() {

  IOException exception =
      assertThrows(
          IOException.class, () -> errorExtractor.toUserPresentableException(accessDenied, null));
  assertThat(exception).hasMessageThat().isEqualTo("Forbidden");
}