@Test
public void should_get_name() throws Exception {

    TeamCityBuildType project = new TeamCityBuildType();
    project.setName("name");
    when(teamCity.findBuildType(anyString())).thenReturn(project);
    SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
    String name = teamCityConnection.getName(softwareProjectId);
    assertEquals("name", name);
}