control.expectAndReturn(requestMock.getServletPath(), "/mycontext/");
control.replay();
assertEquals("/mycontext", ResourceUtil.getResourceBase(requestMock));
control.verify();
control.reset();
control.expectAndReturn(requestMock.getServletPath(), "/mycontext/test.jsp");
control.replay();
assertEquals("/mycontext", ResourceUtil.getResourceBase(requestMock));
control.verify();