VaadinHttpAndPortletRequestTests<VaadinWebSpherePortalRequest> {
@Override
protected VaadinWebSpherePortalRequest createSut() {
VaadinWebSpherePortalRequest request = new VaadinWebSpherePortalRequest(
portletRequest, vaadinPortletService);
// Although partial mocking can be considered a code smell,
// here it's actually quite useful to mock reflection calls.
VaadinWebSpherePortalRequest spy = spy(request);
doReturn(servletRequest).when(spy).getServletRequest(portletRequest);
return spy;
}