@@ -0,0 +1,1553 @@
+package hudson.plugins.git;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0Aimport static org.hamcrest.CoreMatchers.is;%0A%0Apublic class GitLockFailedExceptionTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void throwsGitLockFailedException() %7B%0A        String message = null;%0A        thrown.expect(GitLockFailedException.class);%0A        thrown.expectMessage(is(message));%0A        throw new GitLockFailedException();%0A    %7D%0A%0A    @Test%0A    public void throwsGitLockFailedExceptionWithMessage() %7B%0A        String message = %22My local exception message%22;%0A        thrown.expect(GitLockFailedException.class);%0A        thrown.expectMessage(is(message));%0A        throw new GitLockFailedException(message);%0A    %7D%0A%0A    @Test%0A    public void throwsGitLockFailedExceptionWithCause() %7B%0A        String message = %22My git exception message%22;%0A        GitException e = new GitException(message);%0A        thrown.expect(GitLockFailedException.class);%0A        thrown.expectMessage(is(%22hudson.plugins.git.GitException: %22 + message));%0A        throw new GitLockFailedException(e);%0A    %7D%0A%0A    @Test%0A    public void throwsGitLockFailedExceptionWithCauseAndMessage() %7B%0A        String message = %22My git exception message%22;%0A        GitException e = new GitException(message);%0A        String lockMessage = %22My lock message%22;%0A        thrown.expect(GitLockFailedException.class);%0A        thrown.expectMessage(is(lockMessage));%0A        throw new GitLockFailedException(lockMessage, e);%0A    %7D%0A%0A%7D%0A

Add test of GitLockFailedException