@Test
public void shouldReturnRedirectWithLocationIfGetFailsBecauseNotLeaderExceptionIsThrownWithTheLeaderSetToAValidLeader() {

    when(distributedStore.get(KEY)).thenReturn(Futures.<KeyValue>immediateFailedFuture(new NotLeaderException(self, leader)));
    assertThatValidGetRequestReturnsErrorStatus(ClientResponse.Status.MOVED_PERMANENTLY);
}