@Test
public void testNewInstanceBadUrlPath() throws Exception {

    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("HFCAClient url does not support path");
    HFCAClient.createNewInstance("http://localhost/bad", null);
}