{
WebContext context = newContext();
replayControls();
Resource r = new WebContextResource(context, "/foo/bar/baz_en.html", Locale.ENGLISH);
assertEquals("context:/foo/bar/baz_en.html", r.toString());
assertEquals("/foo/bar/baz_en.html", r.getPath());
assertEquals("baz_en.html", r.getName());
assertEquals(Locale.ENGLISH, r.getLocale());
verifyControls();
}