@Test
public void shouldReturnRedirectWithLocationIfDeleteFailsBecauseNotLeaderExceptionIsThrownWithTheLeaderSetToAValidLeader() {

    when(distributedStore.delete(KEY)).thenReturn(Futures.<Void>immediateFailedFuture(new NotLeaderException(self, leader)));
    assertThatValidDeleteRequestReturnsErrorStatus(ClientResponse.Status.MOVED_PERMANENTLY);
}