docstr: CompositePublisher - Ensure publishers executed in correct order
docstr_tok: ["CompositePublisher","-","Ensure","publishers","executed","in","correct","order"]
code: def test_composite_publisher_ordering():
      """CompositePublisher - Ensure publishers executed in correct order"""
      publisher = CompositePublisher(
          [
              SamplePublisher1(),
              WrappedFunctionPublisher(sample_publisher_blank),
              SamplePublisher2(),
          ]
      )
  
      alert = get_alert()
      publication = publisher.publish(alert, {})
  
      expectation = {"test2": True}
      assert_equal(publication, expectation)
  
imports: from mock import patch
  from nose.tools import assert_true, assert_equal, assert_false
  from streamalert.alert_processor.helpers import _assemble_alert_publisher_for_output
  from streamalert.shared.publisher import AlertPublisherRepository, AlertPublisher, CompositePublisher, DefaultPublisher, Register, WrappedFunctionPublisher
  from tests.unit.streamalert.alert_processor.helpers import get_alert
label_desc: Use image node_id 1 for calling the TestCompositePublisher obj's underlying member method code with example usage: obj.test_composite_publisher_ordering() without return types