@Test
  public void parsesErrorResponse() {

    server.enqueue(new MockResponse().setResponseCode(500).setBody("ARGHH"));

    TestInterface api =
        newBuilder().target(TestInterface.class, "http://localhost:" + server.getPort());

    Throwable exception = assertThrows(FeignException.class, () -> api.get());
    assertThat(exception.getMessage())
        .contains(
            "[500 Server Error] during [GET] to [http://localhost:"
                + server.getPort()
                + "/] [TestInterface#get()]: [ARGHH]");
  }
Some client implementation tests should override this test if the PATCH operation is
unsupported.
core/src/test/java/feign/client/AbstractClientTest.java