@Test
        void verifyMessageRefused() throws Throwable {
            try (val webServer = new MockWebServer(8166,
                new ByteArrayResource(StringUtils.EMPTY.getBytes(StandardCharsets.UTF_8), "Output"), HttpStatus.INTERNAL_SERVER_ERROR)) {
                webServer.start();
                val result = getHttpClient().sendMessageToEndPoint(new URI("http://localhost:8166").toURL());
                assertNull(result);
            }
        }
Test cases for {@link SimpleHttpClient}.

@author Scott Battaglia
@since 3.1
core/cas-server-core-util/src/test/java/org/apereo/cas/util/http/SimpleHttpClientTests.java