diff --git a/activemq-core/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java b/activemq-core/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java index b324e191c6..43ff99ce5e 100644 --- a/activemq-core/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/security/CachedLDAPSecurityLegacyTest.java @@ -87,9 +87,7 @@ public class CachedLDAPSecurityLegacyTest extends AbstractLdapTestUnit { Queue queue = sess.createQueue("ADMIN.FOO"); try { - // https://issues.apache.org/jira/browse/AMQ-4213 - // sync send on producer so it throws - MessageProducer producer = sess.createProducer(queue); + sess.createProducer(queue); fail("expect auth exception"); } catch (JMSException expected) { } @@ -104,9 +102,7 @@ public class CachedLDAPSecurityLegacyTest extends AbstractLdapTestUnit { Queue queue = sess.createQueue("TEST.FOO,ADMIN.FOO"); try { - // https://issues.apache.org/jira/browse/AMQ-4213 - // sync send on producer so it throws - MessageProducer producer = sess.createProducer(queue); + sess.createProducer(queue); fail("expect auth exception"); } catch (JMSException expected) { }