@Test(expected=IllegalArgumentException.class)
public void testBasicPathInvalidInput2() throws Exception {

    AbstractCookieSpec cookiespec = new DummyCookieSpec();
    cookiespec.registerAttribHandler("whatever", null);
}