+
+ @Test
+ public void processSign()throws Exception {
+ mockMvc.perform(get("/process_csp"))//.header("Authorization", basic_auth))
+ .andExpect(status().is3xxRedirection());
+ //processSingleSignOn
+
+ }
+
+ @Test
+ public void processSingleSign()throws Exception {
+ PowerMockito.mockStatic(SessionCookieUtil.class);
+
+ when(SessionCookieUtil.getUserIdFromCookie(mockedRequest, mockedResponse)).thenReturn("user");
+ when(cookie.getName()).thenReturn("UserId");
+ when(cookie.getValue()).thenReturn("user");
+
+
+ mockMvc.perform(get("/processSingleSignOn").cookie(cookie))
+
+ .andExpect(status().is3xxRedirection());
+
+
+ }