Description
URISupport.isCompositeURI(URI uri) is not implemented correctly. It doesn't work for the cases when a scheme part contains "//" (double slashes). In the simple test where a failover uri contains two url's: failover://(tcp://bla:61616,tcp://bla:61617)} and is the composite URI, URISupport.isCompositeURI(uri) returns false... The general problem is that the definition of a "composite URI" is pretty loose and is not defined formally... According to http://activemq.2283324.n4.nabble.com/composite-uri-td4654365.html
uri is composite if the scheme is followed by (..)
Please, find attached unit test patch and, possible fix based on assumption that parentheses is a criteria...