### Question:
MantisConnector { @Nonnull Collection<ProjectData> getProjects() throws RemoteException { return Arrays.asList(connectPortType.mc_projects_get_user_accessible(USERNAME, PASSWORD)); } MantisConnector();   }### Answer:
@Test public void testGetProjects() throws ServiceException, RemoteException { MantisConnector connector = new MantisConnector(); Collection<ProjectData> projects = connector.getProjects(); outer: for (String projectName : EXPECTED_PROJECTS) { for (ProjectData project : projects) { if (project.getName().equals(projectName)) { continue outer; } } fail("Failed to locate required mantis project: " + projectName); } }