public void GetMessageBodyAsBytes_UnknownTypeMessage_ExceptionThrown() { var message = new TestMessage(); Assert.Throws <MessagingException>(() => message.GetMessageBodyAsBytes()); }