@Test(expected = ProjectNotFoundException.class) public void should_throw_exception_when_searching_is_building_of_inexistant_project() throws Exception { SoftwareProjectId projectId = new SoftwareProjectId(""); hudsonConnectionPlugin.isBuilding(projectId, 0); }