@Test
public void resourceIdMissingQueryParamWithDefaultNotExistsTest() throws Exception {

    exceptionRule.expect(MobiWebException.class);
    exceptionRule.expectMessage("Query parameters do not contain testQueryParamTwoKey");
    MultivaluedHashMap<String, String> queryParameters = new MultivaluedHashMap<>();
    when(uriInfo.getQueryParameters()).thenReturn(queryParameters);
    when(uriInfo.getPathParameters()).thenReturn(new MultivaluedHashMap<>());
    when(resourceInfo.getResourceMethod()).thenReturn(MockResourceIdQueryParamClass.class.getDeclaredMethod("queryParamWithDefaultNotExists"));
    filter.filter(context);
}