public ApnsInputStream getInputStream() {
        return inputStream;
    }
Wrap some of the boilerplate code using socket, enable passing around a socket together with its streams.
src/test/java/com/notnoop/apns/utils/Simulator/InputOutputSocket.java