### Question:
CardAccountAspect { @AfterReturning(pointcut = "execution(* de.adorsys.psd2.xs2a.service.ais.CardAccountService.getCardAccountDetails(..))", returning = "result") public ResponseObject<Xs2aCardAccountDetailsHolder> getCardAccountDetails(ResponseObject<Xs2aCardAccountDetailsHolder> result) { return cardAccountAspectService.getCardAccountDetails(result); } CardAccountAspect(CardAccountAspectService cardAccountAspectService); @AfterReturning(pointcut = "execution(* de.adorsys.psd2.xs2a.service.ais.CardAccountService.getCardAccountList(..))", returning = "result") ResponseObject<Xs2aCardAccountListHolder> getCardAccountList(ResponseObject<Xs2aCardAccountListHolder> result); @AfterReturning(pointcut = "execution(* de.adorsys.psd2.xs2a.service.ais.CardAccountService.getCardAccountDetails(..))", returning = "result") ResponseObject<Xs2aCardAccountDetailsHolder> getCardAccountDetails(ResponseObject<Xs2aCardAccountDetailsHolder> result); @AfterReturning(pointcut = "execution(* de.adorsys.psd2.xs2a.service.ais.CardTransactionService.getCardTransactionsReportByPeriod(..)) && args(request)", returning = "result", argNames = "result,request") ResponseObject<Xs2aCardTransactionsReport> getTransactionsReportByPeriod(ResponseObject<Xs2aCardTransactionsReport> result, Xs2aTransactionsReportByPeriodRequest request);  }### Answer:
@Test void getCardAccountDetails() { ResponseObject<Xs2aCardAccountDetailsHolder> responseObject = ResponseObject.<Xs2aCardAccountDetailsHolder>builder() .body(new Xs2aCardAccountDetailsHolder(accountDetails, aisConsent)) .build(); aspect.getCardAccountDetails(responseObject); verify(cardAccountAspectService).getCardAccountDetails(responseObject); }