PostfixedApplicationResource implements ApplicationResource { @Override public final String getLocalePath() { return getLocalePath(locale); } protected  PostfixedApplicationResource(String localePath); protected  PostfixedApplicationResource(String path, Locale locale); @Override final String getLocalePath(); @Override final String getPath(); @Override final String getLocalePath(Locale newLocale); @Override final Locale getLocale(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetLocalePath() { TestApplicationResource resource = new TestApplicationResource("/my test/path_fr.html"); assertEquals("/my test/path.html", resource.getLocalePath(null)); assertEquals("/my test/path.html", resource.getLocalePath(Locale.ROOT)); assertEquals("/my test/path_it.html", resource.getLocalePath(Locale.ITALIAN)); assertEquals("/my test/path_it_IT.html", resource.getLocalePath(Locale.ITALY)); assertEquals("/my test/path_en_GB_scotland.html", resource.getLocalePath(new Locale("en", "GB", "scotland"))); }