public void testOpenConnectionWIthLabels() { Resource root = resourceInModel( "x rdf:type ja:Connection; x ja:dbUser 'X'; x ja:dbPassword 'P'; x ja:dbURL U:RL; x ja:dbType 'T'"); final ConnectionDescription fake = ConnectionDescription.create("eh:/x", "DD", "TT", "UU", "PP"); CheckingConnectionAssembler x = new CheckingConnectionAssembler(fake, "eh:/x U:RL X P T"); assertSame(fake, x.open(root)); assertTrue("mock createConnection should have been called", x.called); }