// capabilities
RepositoryCapabilities repcap = r.getCapabilities();
Assert.assertNotNull(repcap);
CapabilityQuery capq = repcap.getQueryCapability();
Assert.assertNotNull(capq);
switch (capq) {
case BOTHCOMBINED:
case BOTHSEPARATE:
case FULLTEXTONLY: