public static CookieBuilder newCookieBuilder(HttpRequest request) {
    return new CookieBuilder(request);
  }
@Test
  public void fail_with_NPE_when_cookie_has_no_name() {
    assertThatThrownBy(() -> newCookieBuilder(request).setName(null))
      .isInstanceOf(NullPointerException.class);
  }