Map strMap = new Map{ 'a' => 'aval', 'b' => 'bval' }; System.assert( strMap.containsKey('a') ); System.assertEquals( 'bval', strMap.get('b') );