void () { myFixture.configureByFiles("main.xsd", "sub.xsd"); LookupElement[] elements = myFixture.completeBasic(); assertTrue(Arrays.stream(elements).anyMatch(element -> "http://www.test.com/sub".equals(element.getLookupString()))); }