@Override
	void handleSocket(Socket socket) throws IOException {
		Map<byte[], Date> inactiveDevices = requestDelegate
				.getInactiveDevices();
		DataOutputStream dataStream = new DataOutputStream(
				socket.getOutputStream());
		for (Entry<byte[], Date> entry : inactiveDevices.entrySet()) {
			int time = (int) (entry.getValue().getTime() / 1000L);
			dataStream.writeInt(time);
			byte[] bytes = entry.getKey();
			dataStream.writeShort(bytes.length);
			dataStream.write(bytes);
		}
		dataStream.close();
	}
Represents the Apple Feedback server. This allows testing outside of the
Apple servers.
src/test/java/com/notnoop/apns/ApnsFeedbackServerSocket.java