UriInfois an interface, so you cannot create it directly. You need to subclass it and create your own class UriInfo. So your uriinfo class should convert String uri / url to a UriInfo object.
public class UriInformation implements UriInfo {
MultivaluedMap<String, String> pathParamMap;
MultivaluedMap<String, String> queryParamMap;
public UriInformation(UriInfo uriInfo) {
}
}
, unit test , tomcat/server.