public class TestJIRAService {
@Test
public void testFormatBuildTagPositive() throws Throwable {
BuildInfo buildInfo = JIRAService.formatBuildTag("abc-123");
Assert.assertEquals("abc/123", buildInfo.getFormattedBuildTag());
Assert.assertEquals("abc", buildInfo.getBuildName());
buildInfo = JIRAService.formatBuildTag("PreCommit-HIVE-TRUNK-Build-1115");
Assert.assertEquals("PreCommit-HIVE-TRUNK-Build/1115", buildInfo.getFormattedBuildTag());
Assert.assertEquals("PreCommit-HIVE-TRUNK-Build", buildInfo.getBuildName());
}