@Test
public void resourceIdMissingPathParamWithDefaultNotExistsTest() throws Exception {

    exceptionRule.expect(MobiWebException.class);
    exceptionRule.expectMessage("Path does not contain parameter testPathParamTwoKey");
    MultivaluedHashMap<String, String> pathParameters = new MultivaluedHashMap<>();
    when(uriInfo.getPathParameters()).thenReturn(pathParameters);
    when(uriInfo.getQueryParameters()).thenReturn(new MultivaluedHashMap<>());
    when(resourceInfo.getResourceMethod()).thenReturn(MockResourceIdPathParamClass.class.getDeclaredMethod("pathParamWithDefaultNotExists"));
    filter.filter(context);
}