Is a new method really needed? Can't one check if the Socket in the other afterConnect is a DatagramSocket and then simply do getChannel on it?

Also, PR lacks tests