Wait for expected build number instead the number of build
Migrate HudsonTestCase to JenkinsRule

In the latest release of Jenkins, HudsonTestCase is already deprecated.
Seems some extended tests don't work with the latest Jenkins.

This patch migrates HudsonTestCase to JenkinsRule.
Merge pull request #187 from rinrinne/jenkins-rule

Migrate HudsonTestCase to JenkinsRule