AbstractCookieSpec implements CookieSpec { public void registerAttribHandler( final String name, final CookieAttributeHandler handler) { if (name == null) { throw new IllegalArgumentException("Attribute name may not be null"); } if (handler == null) { throw new IllegalArgumentException("Attribute handler may not be null"); } this.attribHandlerMap.put(name, handler); } AbstractCookieSpec(); void registerAttribHandler(
            final String name, final CookieAttributeHandler handler);  }
@Test(expected=IllegalArgumentException.class) public void testBasicPathInvalidInput1() throws Exception { AbstractCookieSpec cookiespec = new DummyCookieSpec(); cookiespec.registerAttribHandler(null, null); }
@Test(expected=IllegalArgumentException.class) public void testBasicPathInvalidInput2() throws Exception { AbstractCookieSpec cookiespec = new DummyCookieSpec(); cookiespec.registerAttribHandler("whatever", null); }