Salesforce Messaging Session record in Apex Test Class
Sample Apex Code: @isTest private class MessagingSessionTest { testMethod static void testMessagingSession() { User thisUser = [ SELECT Id FROM User WHERE Id = :UserInfo.getUserId() ]; System.runAs ( thisUser ) ....