public void testSetLocaleInvalidLocale() {
    try {
      handler.setLocale(adminKey, admin.getLogin(), "rd_NK");
      fail("rd_NK should be an invalid locale");
    } catch (InvalidLocaleCodeException ilce) {
      // expected exception
    }

    try {
      handler.setLocale(adminKey, admin.getLogin(), null);
      fail("null should be an invalid locale");
    } catch (InvalidLocaleCodeException ilce) {
      // expected exception
    }
  }
 public void testSetLocale() {
   String l = admin.getPreferredLocale();
   assertNull(l);
   System.out.println(l);
   handler.setLocale(adminKey, admin.getLogin(), "en_US");
   assertEquals("en_US", admin.getPreferredLocale());
 }