@Test
public void testRestRequestFailure() throws IOException {

    String serverUrl = "http://teamcity.gonevertical.org";
    String username = github.getUsername();
    String password = github.getPassword();
    int buildId = 490;
    
    TeamCityRestRequest rest = new TeamCityRestRequest(serverUrl, username, password);
    Build build = rest.fetchBuildStatus(buildId);
    
    Assert.assertNotNull(build);
    Assert.assertTrue(build.getStatus().contains("FAIL"));
}