train_optimizePath(optimizer, "/foo/bar", OPTIMIZED);
train_encodeURL(response, OPTIMIZED, ENCODED);
replay();
Link link = new LinkImpl("/foo/bar", true, false, response, optimizer);
link.setAnchor("wilma");
assertSame(link.getAnchor(), "wilma");
assertEquals(link.toURI(), ENCODED + "#" + "wilma");
verify();
}