public void testLdapFilter() throws Exception {
System.setProperty("org.osgi.vendor.framework", "org.apache.servicemix.nmr.core");
Endpoint endpoint = new DummyEndpoint();
Reference ref = registry.lookup("(NAME=id)");
assertNotNull(ref);
assertTrue(ref instanceof InternalReference);
InternalReference r = (InternalReference) ref;
assertNotNull(r.choose(registry));
assertFalse(r.choose(registry).iterator().hasNext());