@Test
public void testProxyUriVideoWithoutItemAndInvalidUrl() {

    when(request.getParameter(eq("widgetId"))).thenReturn(VIDEO_WIDGET_ID);
    when(videoWidget.getUrl()).thenReturn(INVALID_URL);
    when(videoWidget.getItem()).thenReturn(null);
    URI uri = service.uriFromRequest(request);
    assertNull(uri);
}