protected void handleNotificationWithAction(ApnsNotificationWithAction notificationWithAction,
                                                InputOutputSocket inOutSocket) throws IOException {
        final ApnsResponse response = notificationWithAction.getResponse();
        if (!response.isDoNothing()) {
            if (response.getAction() == Action.RETURN_ERROR_AND_SHUTDOWN) {
                // have to stop first before sending out the error
                stop();
                sendError(response, inOutSocket);
            } else {
                sendError(response, inOutSocket);
            }
        }
    }
Provides a simulator that receives connection over TCP as per a real APNS server.  This class allows verification
and prior configuration of responses in a manner similar to a mocking framework.
src/test/java/com/notnoop/apns/utils/Simulator/ApnsSimulatorWithVerification.java