    @Test
    public void testWhenPUT() throws Exception {

        String path = "/sample";
        String worksBody = "works";
        MatchableCall matchableCall = RESTMockServer.whenPUT(pathEndsWith(path));
        assertNotNull(matchableCall);
        assertEquals(0, matchableCall.getNumberOfAnswers());
        verify(RESTMockServer.dispatcher, never()).addMatchableCall(matchableCall);
        TestUtils.assertNotMocked(TestUtils.get(path));
        matchableCall.thenReturnString(worksBody);
        TestUtils.assertNotMocked(TestUtils.get(path));
        TestUtils.assertNotMocked(TestUtils.post(path));
        TestUtils.assertNotMocked(TestUtils.delete(path));
        TestUtils.assertResponseWithBodyContains(TestUtils.put(path), 200, "works");
        TestUtils.assertNotMockedNoBody(TestUtils.head(path));
    }