public void TestShallowCopy() { ActiveMQTextMessage msg = new ActiveMQTextMessage(); string testString = "str"; msg.Text = testString; Message copy = msg.Clone() as Message; Assert.IsTrue(msg.Text == ((ActiveMQTextMessage) copy).Text); }