@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")));
}