I needed this to test the new "reject" p2p message, but it should be generally useful for fuzz-testing network message handling code.
Note: you'll quickly trigger the DoS-and-ban code if you connect to random peers, this is most useful in a two-nodes-on-your-development-machine testnet-in-a-box or -regtest setup.