@Test
public void toFailedAuthenticationResult() {

    final DittoRuntimeException dre =
            DittoRuntimeException.newBuilder("none", HttpStatusCode.INTERNAL_SERVER_ERROR).build();
    final Throwable reasonOfFailure =
            underTest.toFailedAuthenticationResult(dre, knownDittoHeaders).getReasonOfFailure();
    assertThat(reasonOfFailure).isEqualTo(dre);
}