deployer.validate(rootNode);
NodeList queueNodes = rootNode.getElementsByTagName("queue");
assertEquals(1, queueNodes.getLength());
deployer.deploy(queueNodes.item(0));
Bindings bindings = server.getPostOffice().getBindingsForAddress(SimpleString.toSimpleString("bar"));
assertEquals(1, bindings.getBindings().size());
Binding binding = bindings.getBindings().iterator().next();
assertTrue(binding instanceof LocalQueueBinding);
LocalQueueBinding queueBinding = (LocalQueueBinding)binding;
assertEquals("foo", queueBinding.getQueue().getName().toString());
assertEquals("speed > 88", queueBinding.getQueue().getFilter().getFilterString().toString());