@Test
public void testGetLocale() throws Exception
{

    assertEquals(Locale.GERMAN, Helper.getLocale("de"));
    assertEquals(Locale.GERMANY, Helper.getLocale("de_DE"));
    assertEquals(Locale.GERMANY, Helper.getLocale("de-DE"));
    assertEquals(Locale.ENGLISH, Helper.getLocale("en"));
    assertEquals(Locale.US, Helper.getLocale("en_US"));
    assertEquals(Locale.US, Helper.getLocale("en_US.UTF-8"));
}