@Test
public void shouldReturnNoContentIfCASSucceedsAndDeletesAKey() {

    SetValue deleteKeySetValue = new SetValue();
    deleteKeySetValue.setExpectedValue(EXPECTED_VALUE);
    deleteKeySetValue.setNewValue(null);
    when(distributedStore.compareAndSet(KEY, deleteKeySetValue)).thenReturn(Futures.<KeyValue>immediateFuture(null));
    ClientResponse response = client().resource(REQUEST_URI).type(MediaType.APPLICATION_JSON_TYPE).put(ClientResponse.class, deleteKeySetValue);
    assertThat(response.getClientResponseStatus(), equalTo(ClientResponse.Status.NO_CONTENT));
}