### Question:
CmsAuthorisationService implements AuthService { @Override public Optional<AuthorisationEntity> getAuthorisationById(String authorisationId) { return authorisationRepository.findByExternalIdAndType(authorisationId, 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 getAuthorisationById() { service.getAuthorisationById(AUTHORISATION_ID); verify(authorisationRepository, times(1)).findByExternalIdAndType(AUTHORISATION_ID, AuthorisationType.PIS_CREATION); }