DefaultHttpJsonRequest implements HttpJsonRequest { @Override public HttpJsonRequest setBody(@NotNull Object body) { this.body = requireNonNull(body, "Required non-null body"); 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 shouldThrowNullPointerExceptionWhenObjectBodyIsNull() throws Exception { final Object obj = null; new DefaultHttpJsonRequest("http: }
@Test(expectedExceptions = NullPointerException.class) public void shouldThrowNullPointerExceptionWhenListBodyIsNull() throws Exception { final List<String> list = null; new DefaultHttpJsonRequest("http: }
@Test(expectedExceptions = NullPointerException.class) public void shouldThrowNullPointerExceptionWhenMapBodyIsNull() throws Exception { final Map<String, String> map = null; new DefaultHttpJsonRequest("http: }