@SuppressWarnings("deprecation")
@Test
public void uriStuffedIntoMethod() {

  thrown.expect(IllegalArgumentException.class);
  thrown.expectMessage("Invalid HTTP Method: /path?queryParam={queryParam}");
  new RequestTemplate().method("/path?queryParam={queryParam}");
}