/**
* @throws URISyntaxException */
@Test
public void testDiscovery() throws URISyntaxException {
RemoteAPILipe p = this.pm.getPlugin(RemoteAPILipe.class);
TestAnnotations p2 = this.pm.getPlugin(TestAnnotations.class);
System.out.println("GO");
ExportResult exportPlugin = p.exportPlugin(p2);
System.out.println("1");
Assert.assertNotNull(exportPlugin);
System.out.println("2");
Plugin rp = p.getRemoteProxy(new URI("discover://nearest"), TestAnnotations.class);
System.out.println(rp);
Plugin remoteProxy = p.getRemoteProxy(new URI("discover://any"), Plugin.class);
Assert.assertNotNull(remoteProxy);
TestAnnotations remoteProxy2 = p.getRemoteProxy(new URI("discover://nearest"), TestAnnotations.class);
Assert.assertNotNull(remoteProxy2);
String injectionStatus = remoteProxy2.getInjectionStatus();
Assert.assertEquals(injectionStatus, "INJECTION OK");
System.out.println("YO");
Plugin youngest = p.getRemoteProxy(new URI("discover://youngest"), Plugin.class);
Assert.assertNotNull(youngest);
Plugin oldest = p.getRemoteProxy(new URI("discover://oldest"), Plugin.class);