HttpOutputMessageClientHttpRequestAdapter implements ClientHttpRequest { public HttpMethod getMethod() { throw new UnsupportedOperationException(); }  @Nonnull @Override ClientHttpResponse execute(); @Nonnull // TODO(Spring 5): @Override String getMethodValue(); HttpMethod getMethod(); @Nonnull @Override URI getURI();  }
@Test void getMethod() { assertThrows(UnsupportedOperationException.class, unit::getMethod); }