@Test
public void queryOverridesPath() throws Exception {

  request.addParameter("path", "4321");
  request.addParameter("defaultvalue", NOV_2.toString());
  RestServletRequestParamReader reader = createReader(ImmutableMap.of("path", "1234"));
  Object[] params = reader.read();
  assertThat(params).hasLength(endpointMethod.getParameterClasses().length);
  assertThat(params).asList()
      .containsExactly(
          4321L,
          null,
          NOV_2,
          new TestResource())
      .inOrder();
}