### Question:
VerifyObjectsAreInFedoraService { public String listObjectPIDs(String depositPid, List<PID> objectPIDs) { StringBuilder buildListOfObjectPIDs = new StringBuilder(); buildListOfObjectPIDs.append("The following objects from deposit ") .append(depositPid) .append(" did not make it to Fedora:\n"); for (PID pid : objectPIDs) { buildListOfObjectPIDs.append(pid.toString() + "\n"); } return buildListOfObjectPIDs.toString(); }  String listObjectPIDs(String depositPid, List<PID> objectPIDs); List<PID> listObjectsNotInFedora(Collection<String> pids); void setFcrepoClient(FcrepoClient fcrepoClient);  }### Answer:
@Test public void listObjectPIDsTest() { PID depositPid = makePid(); PID obj1 = makePid(); PID obj2 = makePid(); List<PID> objPids = new ArrayList<>(); objPids.add(obj1); objPids.add(obj2); assertEquals( "The following objects from deposit " + depositPid.getQualifiedId() + " did not make it to Fedora:\n" + obj1.toString() + "\n" + obj2.toString() + "\n", verificationService.listObjectPIDs(depositPid.getQualifiedId(), objPids)); }