AuditServiceImpl extends
		gov.samhsa.consent2share.service.audit.AuditServiceImpl { @Override public List<HistoryDto> findLegalHistoryDetails(List<Number> revisions) { throw new UnsupportedOperationException( "This operation is not supported in PGC project. Please refer to the baseline implementation for details if required in the future."); } AuditServiceImpl(
			EntityManagerFactory entityManagerFactory,
			PatientRepository patientRepository,
			RevisionInfoEntityRepository patientRevisionEntityRepository,
			ModifiedEntityTypeEntityRepository modifiedEntityTypeEntityRepository,
			PatientLegalRepresentativeAssociationRepository patientLegalRepresentativeAssociationRepository,
			StaffRepository staffRepository); @Override List<HistoryDto> findAllHistory(String username); @Override List<HistoryDto> findLegalHistoryByPatient(long patientId); @Override List<HistoryDto> findLegalHistoryDetails(List<Number> revisions); @Override HistoryDto findLegalHistoryDetail(Number n);  }
@Test public void testFindLegalHistoryDetails() { List<Number> revisions = new ArrayList<Number>(); for (int i = 0; i < 3; i++) { revisions.add(i); } AuditService pasutSpy = spy(pasut); List<HistoryDto> historyDtosList = new ArrayList<HistoryDto>(); List<HistoryDto> historyDtosListSpy = spy(historyDtosList); when(pasutSpy.makeHistoryDtos()).thenReturn(historyDtosListSpy); pasutSpy.findHistoryDetails(revisions); verify(historyDtosListSpy, times(3)).add(any(HistoryDto.class)); }