DefaultHttpJsonRequest implements HttpJsonRequest { @Override public HttpJsonRequest setMethod(@NotNull String method) { this.method = requireNonNull(method, "Required non-null http method"); return this; } protected  DefaultHttpJsonRequest(String url); protected  DefaultHttpJsonRequest(Link link); @Override HttpJsonRequest setMethod(@NotNull String method); @Override HttpJsonRequest setBody(@NotNull Object body); @Override HttpJsonRequest setBody(@NotNull Map<String, String> map); @Override HttpJsonRequest setBody(@NotNull List<?> list); @Override HttpJsonRequest addQueryParam(@NotNull String name, @NotNull Object value); @Override HttpJsonRequest setTimeout(int timeout); @Override HttpJsonResponse request();  }
@Test(expectedExceptions = NullPointerException.class) public void shouldThrowNullPointerExceptionIfSetMethodArgumentIsNull() throws Exception { new DefaultHttpJsonRequest("http: }