### Question:
CmsAuthorisationService implements AuthService { @Override public List<AuthorisationEntity> getAuthorisationsByParentId(String parentId) { return authorisationRepository.findAllByParentExternalIdAndType(parentId, getAuthorisationType()); }  @Override List<AuthorisationEntity> getAuthorisationsByParentId(String parentId); @Override Optional<AuthorisationEntity> getAuthorisationById(String authorisationId); @Override AuthorisationEntity saveAuthorisation(CreateAuthorisationRequest request, Authorisable authorisationParent); @Override AuthorisationEntity doUpdateAuthorisation(AuthorisationEntity authorisationEntity, UpdateAuthorisationRequest updateAuthorisationRequest); @Override Authorisable checkAndUpdateOnConfirmationExpiration(Authorisable authorisable); @Override boolean isConfirmationExpired(Authorisable authorisable); @Override Authorisable updateOnConfirmationExpiration(Authorisable authorisable);  }### Answer:
@Test void getAuthorisationsByParentId() { service.getAuthorisationsByParentId(PARENT_ID); verify(authorisationRepository, times(1)).findAllByParentExternalIdAndType(PARENT_ID, AuthorisationType.PIS_CREATION); }