@Test
public void decisionIsIndeterminateTest() throws Exception {

    when(uriInfo.getPathParameters()).thenReturn(new MultivaluedHashMap<>());
    when(uriInfo.getQueryParameters()).thenReturn(new MultivaluedHashMap<>());
    when(resourceInfo.getResourceMethod()).thenReturn(MockResourceIdStringClass.class.getDeclaredMethod("resourceIdString"));
    when(response.getDecision()).thenReturn(Decision.INDETERMINATE);
    try {
        filter.filter(context);
        fail("Expected MobiWebException to have been thrown");
    } catch (MobiWebException e) {
        assertEquals("Request indeterminate", e.getMessage());
        assertEquals(500, e.getResponse().getStatus());
    }
}