public void testConnectionDescriptionFailsOnMissingType() {
   ConnectionDescription c = new ConnectionDescription("eh:/subject", "URL", null, null, null);
   try {
     c.getConnection();
     fail("should trap null type");
   } catch (JenaException e) {
     assertTrue(
         e.getMessage().endsWith("cannot be opened because no dbURL or dbType was specified"));
   }
 }
 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);
 }