@Test
public void resolvesUriInfo() throws Exception {

    UriInfo uriInfo = mock(UriInfo.class);
    when(applicationContext.getUriInfo()).thenReturn(uriInfo);
    when(parameter.getParameterClass()).thenReturn((Class)UriInfo.class);
    assertSame(uriInfo, contextParameterResolver.resolve(parameter, applicationContext));
    verify(environmentContext, never()).get(any(Class.class));
}