@Test
public void shouldReturnOKResultIfServerIsPartOfClusterAndLeaderIsKnown() {

    // we pretend the NOP command failed, but the leader field is set
    when(distributedStore.nop()).thenReturn(Futures.<Void, NotLeaderException>immediateFailedCheckedFuture(new NotLeaderException("SELF", "LEADER")));
    assertThat(check.check().isHealthy(), equalTo(true));
}