@Ignore
@Test
public void should_get_last_build_number() throws Exception {

    TeamCityBuilds buildList = new TeamCityBuilds();
    for (int i = 1; i <= 10; i++) {
        TeamCityBuildItem item = new TeamCityBuildItem();
        item.setNumber(Integer.toString(i));
        buildList.getBuilds().add(item);
    }
    when(teamCity.findBuildList(anyString())).thenReturn(buildList);
    when(teamCity.findRunningBuild()).thenThrow(new TeamCityBuildNotFoundException(""));
    TeamCityBuildType buildType = new TeamCityBuildType();
    List<TeamCityBuildType> buildTypes = new ArrayList<TeamCityBuildType>();
    TeamCityProject project = new TeamCityProject();
    project.setBuildTypes(buildTypes);
    project.getBuildTypes().add(buildType);
    when(teamCity.findProject(anyString())).thenReturn(project);
    String lastBuildId = teamCityConnection.getLastBuildId(softwareProjectId());
    assertEquals("10", lastBuildId);
}