@Test
public void resolveShouldReturnNullWhenServerRespondsWithInvalidJson() {

    wireMockRule.stubFor(get(urlPathEqualTo(OidcConfigurationResolver.OPENID_CONFIGURATION_PATH))
            .willReturn(aResponse()
                    .withStatus(HttpStatus.SC_OK)
                    .withHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON.getMimeType())
                    .withBody("<?xml version=\"1.0\" ?>")));
    assertThat(new OidcConfigurationResolver(true, wireMockRule.baseUrl()).resolve()).isNull();
    verify(getRequestedFor(urlPathEqualTo(OidcConfigurationResolver.OPENID_CONFIGURATION_PATH)));
}