verify(_mockExchange).createBinding(BINDING1, _mockQueue1, arguments, Collections.<String, Object>emptyMap());
}
public void testRemoveBinding() throws Exception
{
Binding mockBinding1 = createBindingOnQueue(BINDING1, _mockQueue1);
Binding mockBinding2 = createBindingOnQueue(BINDING2, _mockQueue1);
when(_mockExchange.getBindings()).thenReturn(Arrays.asList(new Binding[] {mockBinding1, mockBinding2}));
_exchangeMBean.removeBinding(QUEUE1_NAME, BINDING1);
verify(mockBinding1).delete();
}