@Test
public void should_throw_exception_when_getting_maven_id() throws Exception {

    SoftwareProjectId softwareProjectId = softwareProjectId();
    String projectId = softwareProjectId.getProjectId();
    when(teamCity.findMavenId(projectId)).thenReturn("groupId:artifactId");
    String mavenId = teamCityConnection.getMavenId(softwareProjectId);
    assertEquals("groupId:artifactId", mavenId);
}