@@ -0,0 +1,812 @@
+package se.su.it.cognos.cognosshibauth.config;%0A/**%0A * Created by IntelliJ IDEA.%0A * User: joakim%0A * Date: 2011-04-08%0A * Time: 10:48%0A */%0A%0Aimport com.cognos.CAM_AAA.authentication.INamespaceConfiguration;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0Aimport se.su.it.cognos.cognosshibauth.CognosShibAuth;%0A%0Aimport java.util.Locale;%0A%0Aimport static org.mockito.Mockito.*;%0Aimport static org.junit.Assert.*;%0A%0A@RunWith(PowerMockRunner.class)%0Apublic class ConfigHandlerTest %7B%0A%0A  @Test%0A  public void testThatNameReturnsNameForLocale() throws Exception %7B%0A    Locale locale_sv = new Locale(%22sv_SE%22);%0A    ConfigHandler configHandler = new ConfigHandler();%0A%0A    String sv_name = configHandler.getName(locale_sv);%0A%0A    assertEquals(%22Swedish Name%22, sv_name);%0A  %7D%0A%7D%0A%0A

Test that getName works.