AsyncMetaMessageProducer producer =
new AsyncMetaMessageProducer(messageSessionFactory, this.remotingClient, this.partitionSelector,
this.producerZooKeeper, this.sessionId, 20000, processor);
Assert.assertTrue(producer.getIgnoreMessageProcessor() == processor);
EasyMock.expect(messageSessionFactory.getMetaClientConfig()).andReturn(new MetaClientConfig());
mocksControl.replay();
producer =
new AsyncMetaMessageProducer(messageSessionFactory, this.remotingClient, this.partitionSelector,
this.producerZooKeeper, this.sessionId, 20000, null);
Assert.assertTrue(producer.getIgnoreMessageProcessor() instanceof AsyncIgnoreMessageProcessor);