@@ -0,0 +1,1122 @@
+package hudson.plugins.git;%0A%0Aimport org.eclipse.jgit.lib.ObjectId;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0Apublic class TagTest %7B%0A    private final String tagName = %22git-client-1.8.1%22;%0A    private final String tagSHA1String = %223725b67f3daa6621dd01356c96c08a1f85b90c61%22;%0A    private final ObjectId tagSHA1 = ObjectId.fromString(tagSHA1String);%0A    Tag tag;%0A%0A    @Before%0A    public void assignTag() %7B%0A        tag = new Tag(tagName, tagSHA1);%0A    %7D%0A%0A    @Test%0A    public void testGetCommitMessage() %7B%0A        assertEquals(null, tag.getCommitMessage());%0A    %7D%0A%0A    @Test%0A    public void testSetCommitMessage() %7B%0A        String tagMessage = %22My commit message%22;%0A        tag.setCommitMessage(tagMessage);%0A        assertEquals(tagMessage, tag.getCommitMessage());%0A    %7D%0A%0A    @Test%0A    public void testGetCommitSHA1() %7B%0A        assertEquals(null, tag.getCommitSHA1());%0A    %7D%0A%0A    @Test%0A    public void testSetCommitSHA1() %7B%0A        String mySHA1 = %227d34e076db3364912ec35f1ef06a3d638e6ab075%22;%0A        tag.setCommitSHA1(mySHA1);%0A        assertEquals(mySHA1, tag.getCommitSHA1());%0A    %7D%0A%0A%7D%0A

Add test of legacy Tag object