I am trying to assertEquals my test data's OwnerId against a picklist value's corresponding ID, but I don't know how to do the latter. Basically I want to know how to use Apex to grab the Id of a picklist value so I can compare it to my test data's OwnerId for testing.
System.assertEquals("The Id of the value of 'Analytics Support Team' picklist value", analyticsTicket.OwnerId);
Pretend that the part in quotes is the ID coming from the picklist. Please help.