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

    Throwable notFound = new BambooPlanNotFoundException("not found");
    when(bamboo.findPlan(anyString())).thenThrow(notFound);
    SoftwareProjectId softwareProjectId = new SoftwareProjectId("projectId");
    bambooConnection.isProjectDisabled(softwareProjectId);
}