@Test
public void testExecute() throws Exception {

    LocaleCodeSanitizer localeCodeSanitizer = new LocaleCodeSanitizer();
    assertEquals("en_US", localeCodeSanitizer.execute("en_US"));
    assertEquals("en", localeCodeSanitizer.execute("en"));
    assertEquals("fr_FR", localeCodeSanitizer.execute("fr_FR"));
    assertEquals("en_US", localeCodeSanitizer.execute("foo"));
    assertEquals("en_US", localeCodeSanitizer.execute("<script>"));
    assertEquals("", localeCodeSanitizer.execute(""));
    assertEquals(" ", localeCodeSanitizer.execute(" "));
    assertEquals(null, localeCodeSanitizer.execute(null));
}