verify(channel, times(0)).queueBind("foo", "bar", "foo", null);
}
@Test
public void testSkipBecauseShouldntDeclare() throws Exception {
ConnectionFactory cf = mock(ConnectionFactory.class);
Connection conn = mock(Connection.class);
Channel channel = mock(Channel.class);
when(cf.createConnection()).thenReturn(conn);
when(conn.createChannel(false)).thenReturn(channel);
when(channel.queueDeclare("foo", true, false, false, null)).thenReturn(new AMQImpl.Queue.DeclareOk("foo", 0, 0));
final AtomicReference<ConnectionListener> listener = new AtomicReference<ConnectionListener>();
doAnswer(new Answer<Object>() {