// There should be a tag reference
Ref hotfixTagRef = git.getRepository( ).getTags( ).get( flow.getVersionTagPrefix( ) + "1.0" );
assertNotNull( hotfixTagRef );
RevTag hotfixTag = new RevWalk( git.getRepository( ) ).parseTag( hotfixTagRef.getObjectId( ) );
assertNotNull( hotfixTag );
RevCommit newMasterHead = GitHelper.getLatestCommit(git, masterBranchName );
// Check that master has moved
assertFalse( newMasterHead.equals( oldMasterHead ) );
// Hotfix tag should reference new master
assertEquals( newMasterHead, hotfixTag.getObject( ) );
}