### Question:
AccountHelperService { ActionStatus createActionStatus(boolean withBalance, TypeAccess access, ResponseObject response) { return response.hasError() ? errorToActionStatusMapper.mapActionStatusError(response.getError().getTppMessage().getMessageErrorCode(), withBalance, access) : ActionStatus.SUCCESS; }  SpiAccountReference findAccountReference(List<AccountReference> references, String resourceId); SpiContextData getSpiContextData();  }### Answer:
@Test void createActionStatus_WithThreeArguments() { ActionStatus actual = accountHelperService.createActionStatus(WITH_BALANCE, TYPE_ACCESS_ACCOUNT, RESPONSE_OBJECT); assertEquals(ACTION_STATUS_SUCCESS, actual); }
@Test void createActionStatus_WithThreeArgumentsAndError() { when(errorToActionStatusMapper.mapActionStatusError(CONSENT_INVALID, WITH_BALANCE, TYPE_ACCESS_ACCOUNT)) .thenReturn(ACTION_STATUS_CONSENT_INVALID_STATUS); ActionStatus actual = accountHelperService.createActionStatus(WITH_BALANCE, TYPE_ACCESS_ACCOUNT, RESPONSE_OBJECT_WITH_ERROR); assertEquals(ACTION_STATUS_CONSENT_INVALID_STATUS, actual); }