@Deprecated
    public static ApnsServerStub prepareAndStartServer(int gatePort, int feedPort) {
        ApnsServerStub server = new ApnsServerStub(FixedCertificates.serverContext().getServerSocketFactory(), gatePort, feedPort);
        server.start();
        return server;
    }
Create an ApnsServerStub

@param gatePort port for the gateway stub server
@param feedPort port for the feedback stub server
@return an ApnsServerStub
@deprecated use prepareAndStartServer() without port numbers and query the port numbers from the server using
ApnsServerStub.getEffectiveGatewayPort() and ApnsServerStub.getEffectiveFeedbackPort()
src/test/java/com/notnoop/apns/utils/ApnsServerStub.java