@Test
void shouldReturnNullIfQueryIsNotSetInfPartialRequestConfig() {

    final HttpServletRequest mockHttpServletRequest = mock(HttpServletRequest.class);
    when(mockHttpServletRequest.getMethod()).thenReturn(GET);
    when(mockHttpServletRequest.getServletPath()).thenReturn(PATH);
    DefaultPartialRequest target = new DefaultPartialRequest(mockHttpServletRequest, new PartialRequestConfig());
    PartialRequest result = target.getDefaultPartialRequest();
    assertThat(result, is(nullValue()));
}