@Test(timeout = 2000)
    public void sendOneSimpleClientCertFail() throws InterruptedException {
        ApnsService service =
                APNS.newService().withSSLContext(clientMultiKeyContext("notused"))
                        .withGatewayDestination(LOCALHOST, gatewayPort)
                        .build();
        server.stopAt(msg1.length());
        try {
            service.push(msg1);
            fail();
        } catch (NetworkIOException e) {
            assertTrue("Expected bad_certifcate exception", e.getMessage().contains("bad_certificate"));
        }
    }
Unlike in the feedback case, push messages won't expose the socket timeout,
as the read is done in a separate monitoring thread.

Therefore, normal behavior is expected in this test.

@throws InterruptedException
src/test/java/com/notnoop/apns/integration/ApnsConnectionTest.java