* @throws IllegalArgumentException If something goes wrong.
*/
@Test
public void testResourcePortletRequest() throws NoSuchFieldException, IllegalAccessException {
ApplicationContext applicationContext = createMock(ApplicationContext.class);
PortletContext portletContext = createMock(PortletContext.class);
ResourceRequest request = createMock(ResourceRequest.class);
ResourceResponse response = createMock(ResourceResponse.class);
replay(applicationContext, portletContext, request, response);
ResourcePortletRequest req = new ResourcePortletRequest(applicationContext,