@Test(expected = ProjectNotFoundException.class)
public void should_throw_exception_when_project_is_not_found() throws Exception {

    Throwable notFound = new TeamCityBuildTypeNotFoundException("not found", null);
    when(teamCity.findBuildType(anyString())).thenThrow(notFound);
    SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
    teamCityConnection.isProjectDisabled(softwareProjectId);
}