@Test
public void shouldReturnServiceUnavailableWithNoLocationIfSetFailsBecauseNotLeaderExceptionIsThrownWithTheLeaderSetToNull() {

    when(distributedStore.set(KEY, setValue)).thenReturn(Futures.<KeyValue>immediateFailedFuture(new NotLeaderException(self, null)));
    assertThatValidSetRequestReturnsErrorStatus(ClientResponse.Status.SERVICE_UNAVAILABLE);
}