public void testAttributes() throws Exception
{
checkResource(ObjectNameBuilder.DEFAULT.getDivertObjectName(new SimpleString(divertConfig.getName())));
DivertControl divertControl = createManagementControl(divertConfig.getName());
Assert.assertEquals(divertConfig.getFilterString(), divertControl.getFilter());
Assert.assertEquals(divertConfig.isExclusive(), divertControl.isExclusive());
Assert.assertEquals(divertConfig.getName(), divertControl.getUniqueName());
Assert.assertEquals(divertConfig.getRoutingName(), divertControl.getRoutingName());
Assert.assertEquals(divertConfig.getAddress(), divertControl.getAddress());
Assert.assertEquals(divertConfig.getForwardingAddress(), divertControl.getForwardingAddress());
Assert.assertEquals(divertConfig.getTransformerClassName(), divertControl.getTransformerClassName());
}