### Question:
MantisConnector { @Nullable ProjectData getProject(@Nonnull String projectName) throws RemoteException { Collection<ProjectData> projects = getProjects(); for (ProjectData project : projects) { if (project.getName().equals(projectName)) { return project; } } return null; } MantisConnector();   }### Answer:
@Test public void testGetProject() throws ServiceException, RemoteException { MantisConnector connector = new MantisConnector(); for (String projectName : EXPECTED_PROJECTS) { assertNotNull(connector.getProject(projectName), "Fetching project " + projectName + "."); } }