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