@Test
public void resourceIdMissingQueryParamWithDefaultTest() throws Exception {

    MultivaluedHashMap<String, String> queryParameters = new MultivaluedHashMap<>();
    when(uriInfo.getQueryParameters()).thenReturn(queryParameters);
    when(uriInfo.getPathParameters()).thenReturn(new MultivaluedHashMap<>());
    when(resourceInfo.getResourceMethod()).thenReturn(MockResourceIdQueryParamClass.class.getDeclaredMethod("queryParamWithDefault"));
    IRI actionId = VALUE_FACTORY.createIRI(Read.TYPE);
    IRI resourceId = VALUE_FACTORY.createIRI(DEFAULT_RESOURCE_ID_IRI);
    IRI subjectId = VALUE_FACTORY.createIRI(ANON_USER);
    filter.filter(context);
    Mockito.verify(pdp).createRequest(subjectId, new HashMap<>(), resourceId, new HashMap<>(), actionId, new HashMap<>());
}