@Test
public void resolveShouldReturnNullWhenServerRespondsWithNon200StatusCode() {

    wireMockRule.stubFor(get(urlPathEqualTo(OidcConfigurationResolver.OPENID_CONFIGURATION_PATH))
            .willReturn(aResponse()
                    .withStatus(HttpStatus.SC_NOT_FOUND)));
    assertThat(new OidcConfigurationResolver(true, wireMockRule.baseUrl()).resolve()).isNull();
    verify(getRequestedFor(urlPathEqualTo(OidcConfigurationResolver.OPENID_CONFIGURATION_PATH)));
}