boolean connectedToRepository() {
    return repository.isConnected();
  }
@Test
  public void connectedToRepository() {
    when( repository.isConnected() ).thenReturn( true );
    assertTrue( timeoutHandler.connectedToRepository() );
  }