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")); } }