ConnectionFactoryMock connFactory2 = new ConnectionFactoryMock();
ServiceRegistration registration2 = registerConnectionFactory(connFactory2, props);
ConnectorService service = getConnectorService();
Connection connection = service.open("file://test.txt");
assertEquals("uri checks for highest service.id", null, connFactory2.getName());
assertEquals("uri checks for lowest service.id", "file://test.txt", connFactory.getName());
assertEquals(ConnectorService.READ_WRITE, connFactory.getMode());
assertEquals(false, connFactory.isTimeout());
assertNotNull("checks returned Connection", connection);