@Test
  public void shouldNotInitializeAnyRepositoryWhenScmContextIsEmpty() throws Throwable {
    ScmContext emptyContext = new ScmContext(null, null, null, null);
    sscBusiness.init(emptyContext);
    assertThat(sscBusiness.scmCheckoutDirectorySettledUp(emptyContext), is(false));

    emptyContext =
        new ScmContext(null, getSCMRepositoryURL(), getSCMCommentPrefix(), getSCMCommentSuffix());
    sscBusiness.init(emptyContext);
    assertThat(sscBusiness.scmCheckoutDirectorySettledUp(emptyContext), is(false));

    SCM mockedSCM = createSCMMock(true);
    emptyContext = new ScmContext(mockedSCM, null, null, null);
    sscBusiness.init(emptyContext);
    assertThat(sscBusiness.scmCheckoutDirectorySettledUp(emptyContext), is(false));
  }
 @Test
 public void shouldInitializeLocalRepositoryWhenScmContextIsCorrect() throws Throwable {
   SCM mockedSCM = createSCMMock(true);
   ScmContext scmContext =
       new ScmContext(
           mockedSCM, getSCMRepositoryURL(), getSCMCommentPrefix(), getSCMCommentSuffix());
   sscBusiness.init(scmContext);
   assertThat(sscBusiness.scmCheckoutDirectorySettledUp(scmContext), is(true));
 }
 @Test
 @Ignore(
     "Not yet implemented ! (it is difficult because svn list/log has not yet been implemented in svnjava impl")
 public void
     shouldInitializeLocalRepositoryWhenScmContextIsCorrentAndEvenIfScmDirectoryDoesntExist()
         throws Throwable {
   SCM mockedSCM = createSCMMock(true);
   ScmContext scmContext =
       new ScmContext(
           mockedSCM,
           getSCMRepositoryURL() + "/path/that/doesnt/exist/",
           getSCMCommentPrefix(),
           getSCMCommentSuffix());
   sscBusiness.init(scmContext);
   assertThat(sscBusiness.scmCheckoutDirectorySettledUp(scmContext), is(true));
 }