@Test
public void testRegistration()
throws Exception
{
final InVMTransport transport = new InVMTransport() ;
final InVMEpr epr1 = new InVMEpr(URI.create(InVMEpr.INVM_PROTOCOL + "://" + InVMEpr.createEncodedServiceId(TEST_CATEGORY1, TEST_NAME1))) ;
final InVMEpr epr2 = new InVMEpr(URI.create(InVMEpr.INVM_PROTOCOL + "://" + InVMEpr.createEncodedServiceId(TEST_CATEGORY2, TEST_NAME2))) ;
final InVMEpr epr3 = new InVMEpr(URI.create(InVMEpr.INVM_PROTOCOL + "://" + InVMEpr.createEncodedServiceId(TEST_CATEGORY2, TEST_NAME2))) ;
final InVMEpr epr4 = new InVMEpr(URI.create(InVMEpr.INVM_PROTOCOL + "://" + InVMEpr.createEncodedServiceId(TEST_CATEGORY2, TEST_NAME2))) ;
Assert.assertEquals("All services count", 0, transport.findAllServices().size()) ;
Assert.assertEquals("Category count", 0, transport.findServices(TEST_CATEGORY1).size()) ;
Assert.assertEquals("Category count", 0, transport.findServices(TEST_CATEGORY2).size()) ;