question: public void testDomainNotAutomaticallyPrefixedWithDot ( ) { HttpCookie cookie = new HttpCookie ( "Foo" , "foo" ) ; cookie . setDomain ( "localhost" ) ; assertEquals ( "localhost" , cookie . getDomain ( ) ) ; }
target:  From the spec, "If an explicitly specified value does not start with a dot, the user agent supplies a leading dot.". This prepending doesn't happen in setDomain.