* @throws Exception
*
*/
@Test
public void initDefaultLocale() throws Exception {
MockServletContext servletContext = new MockServletContext();
FrontController frontController = new FrontController();
servletContext.setInitParameter(ControllerConstants.LOCALE_KEY, "de");
frontController.servletContext = servletContext;
frontController.initDefaultLocale();
assertThat(frontController.defaultLocale, is(Locale.GERMAN));
}