/**
 * This file is part of mycollab-servlet.
 *
 * mycollab-servlet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * mycollab-servlet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with mycollab-servlet.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.esofthead.mycollab.module.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.junit.Before;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import com.esofthead.mycollab.configuration.SiteConfiguration;
import com.esofthead.mycollab.template.velocity.TemplateEngine;

public class GenericServletTest {

	@Mock
	protected TemplateEngine templateEngine;

	@Mock
	protected HttpServletRequest request;

	@Mock
	protected HttpServletResponse response;

	@Before
	public void setUp() {
		SiteConfiguration.loadInstance(8080);
		MockitoAnnotations.initMocks(this);
	}
}

@@ -752,16 +752,83 @@
 rvlet;%0A%0A
+import static org.mockito.Mockito.when;%0A%0Aimport java.util.Locale;%0A%0A
 import j
@@ -1421,14 +1421,67 @@
 s(this);
+%0A%0A%09%09when(response.getLocale()).thenReturn(Locale.US);
 %0A%09%7D%0A%7D%0A

Fix unit test