"Sanselan", Migrate.class.getName())
.endpoint(endpoint2).paths(path).build());
/* And can then query by example, e.g. for migration services supporting the path: */
ServiceDescription example = new ServiceDescription.Builder(null, Migrate.class
.getName()).paths(path).build();
List<ServiceDescription> migrationServices = registry.query(example);
/* Which we expect to return only the compatible migration service: */
Assert.assertEquals(1, migrationServices.size());
Assert.assertEquals("Sanselan", migrationServices.get(0).getName());
/* For further example on queries see CoreRegistryTests */
}