### Question:
ReceivedPaidFeeCommandHandler { @CommandHandler public void handleCancelReceived(CancelReceivedFeeCommand command) { ReceivedFee fee = receivedFeeRepository.load(command.getFeeId()); fee.cancel(command.getCancelledReason(), command.getCancelledDate()); }  @CommandHandler void handleCreateReceived(CreateReceivedFeeCommand command); @CommandHandler void handleConfirmReceived(ConfirmReceivedFeeCommand command); @CommandHandler void handleOffsetReceived(OffsetReceivedFeeCommand command); @CommandHandler void handleCancelReceived(CancelReceivedFeeCommand command); @CommandHandler void handleCreatePaid(CreatePaidFeeCommand command); @CommandHandler void handleConfirmPaid(ConfirmPaidFeeCommand command); @CommandHandler void handleOffsetPaid(OffsetPaidFeeCommand command); @CommandHandler void handleCancelPaid(CancelPaidFeeCommand command); @Resource(name = "receivedFeeRepository") void setReceivedFeeRepository(Repository<ReceivedFee> receivedFeeRepository); @Resource(name = "paidFeeRepository") void setPaidFeeRepository(Repository<PaidFee> paidFeeRepository);  }### Answer:
@Test public void testHandleCancelReceived() throws Exception { CancelReceivedFeeCommand command = new CancelReceivedFeeCommand(receivedFeeId, CancelledReason.DUPLICATED, tradeTime); receivedFixture.given(new ReceivedFeeCreatedEvent( receivedFeeId, FeeStatus.PENDING, sellCommissionAmount, FeeType.RECEIVE_MONEY, tradeTime, dueDate, portfolioId.toString(), userId.toString(), BusinessType.TRADE_EXECUTED, orderTransactionId.toString(), receivedSource)) .when(command) .expectEvents(new ReceivedFeeCancelledEvent(receivedFeeId, CancelledReason.DUPLICATED, tradeTime)); }