Don't use a lambda when adding the default outbound message handling for Transport, subclass Transport in tests instead