@Test
public void should_get_build_time() throws Exception {

    TeamCityBuild build = new TeamCityBuild();
    build.setStartDate("20110302T171940+0300");
    build.setFinishDate("20110302T171941+0300");
    when(teamCity.findBuild(anyString(), anyString())).thenReturn(build);
    BuildTime buildTime = teamCityConnection.getBuildTime(softwareProjectId(), "1");
    assertEquals(1000, buildTime.getDuration());
    assertNotNull(buildTime.getStartTime());
}