private void waitBeforeSend() {
        int wait = toWaitBeforeSend.get();
        if (wait != 0) {
            try {
                Thread.sleep(wait);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
Introduces a waiting time, used to trigger read timeouts.
src/test/java/com/notnoop/apns/utils/ApnsServerStub.java