public void testDeleteQueueNotExist() throws Exception
{
ClientSession session = locator.createSessionFactory().createSession(false, true, true);
try
{
session.deleteQueue(queueName);
Assert.fail("should throw exception");
}
catch (HornetQException e)
{
Assert.assertEquals(HornetQException.QUEUE_DOES_NOT_EXIST, e.getCode());