boolean connectedToRepository() {
    return repository.isConnected();
  }
@Test
  public void connectedToRepositoryReturnsFalse() {
    when( repository.isConnected() ).thenReturn( false );
    assertFalse( timeoutHandler.connectedToRepository() );
  }