@Test
  public void testUnrecognized401() throws Exception {
    Response networkResponse = fakeResponse(401, "" /*httpMessage*/).build();
    MicrosoftApiResponse response = MicrosoftApiResponse.ofResponse(networkResponse);

    assertThat(response.isOkay()).isFalse();
    assertThat(response.isTokenRefreshRequired()).isFalse();
    IOException thrown =
        assertThrows(
            IOException.class,
            () -> {
              response.throwDtpException("unit testing");
            });
    assertThat(thrown.getMessage()).contains(CAUSE_PREFIX_UNRECOGNIZED_EXCEPTION);
  }
regression coverage: all 401s were being incorrectly detected as invalid token.
extensions/data-transfer/portability-data-transfer-microsoft/src/test/java/org/datatransferproject/transfer/microsoft/MicrosoftApiResponseTest.java