@Test public void testProbe() throws Exception { stubFor( options(urlEqualTo("/endpoint")) .willReturn(aResponse().withStatus(SC_OK).withHeader(HttpHeaders.ALLOW, "PUT"))); endpoint.probe(); assertThat(endpoint.isDownloadAllowed().get(), is(false)); assertThat(endpoint.isUploadAllowed().get(), is(true)); }