CONN-723: unit test and refactor for DirectReceiverImpl.