### Question:
PageContextHelper { public String getCurrentProfile() { return request.getParameter(PROFILE_PARAM); } PageContextHelper(HttpServletRequest request); String getCurrentProfile(); Locale getCurrentLocale(); APISession getApiSession(); static final String PROFILE_PARAM; static final String ATTRIBUTE_API_SESSION; }### Answer:
@Test public void should_return_CurrentProfile() throws Exception { doReturn(MY_PROFILE).when(request).getParameter(PageContextHelper.PROFILE_PARAM); pageContextHelper = new PageContextHelper(request); final String currentProfile = pageContextHelper.getCurrentProfile(); assertThat(currentProfile).isEqualTo(MY_PROFILE); }