@Test
public void testLocaleSeparation() {

        String[] parts = LocalizedText.separateLocale("en-");
        assertTrue("Invalid Locale parts size:"+parts.length,
                parts.length==1);                
        parts = LocalizedText.separateLocale("en");
        assertTrue("Invalid Locale parts size:"+parts.length,
                parts.length==1);
        parts = LocalizedText.separateLocale("en-US");
        assertTrue("Invalid Locale parts size:"+parts.length,
                parts.length==2);
        parts = LocalizedText.separateLocale("en-US-x-twain");
        assertTrue("Invalid Locale parts size:"+parts.length,
                parts.length==3);
}