@Test
public void testIsCompositeURIWithQueryNoSlashes() throws URISyntaxException {

    URI[] compositeURIs = new URI[] { new URI("test:(part1://host?part1=true)?outside=true"), new URI("broker:(tcp://localhost:61616)?name=foo") };
    for (URI uri : compositeURIs) {
        assertTrue(uri + " must be detected as composite URI", URISupport.isCompositeURI(uri));
    }
}