private byte[] toArray(InputStream inputStream, int size)
			throws IOException {
		byte[] bytes = new byte[size];
        final DataInputStream dis = new DataInputStream(inputStream);
        dis.readFully(bytes);
		return bytes;
	}
Represents the Apple APNS server. This allows testing outside of the Apple
servers.
src/test/java/com/notnoop/apns/ApnsGatewayServerSocket.java