@Test
public void testNewInstanceBadUrlQuery() throws Exception {

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