### Question:
OffsetCommandHandler { @CommandHandler public void handleOffsetFees(OffsetFeesCommand command) { Offset offset = offsetRepository.load(command.getOffsetId()); offset.offset(command.getOffsetedDate()); }  @CommandHandler void handleCreateOffset(CreateOffsetCommand command); @CommandHandler void handleOffsetFees(OffsetFeesCommand command); @CommandHandler void handleCancelOffset(CancelOffsetCommand command); @Resource(name = "offsetRepository") void setOffsetRepository(Repository<Offset> offsetRepository);  }### Answer:
@Test public void testHandleOffsetFees() throws Exception { OffsetFeesCommand command = new OffsetFeesCommand( offsetId, tradeTime); fixture.given(new OffsetCreatedEvent(offsetId, OffsetType.RECEIVED_AR, portfolioId.toString(), ImmutableList.of(new FeeItem(receivedFeeId.toString(), FeeItemType.AR, offsetAmount)), ImmutableList.of( new FeeItem(accountReceivableFeeId1.toString(), FeeItemType.RECEIVED, receivedAmount1), new FeeItem(accountReceivableFeeId2.toString(), FeeItemType.RECEIVED, receivedAmount2)), offsetAmount, tradeTime)) .when(command) .expectEvents(new OffsetedEvent(offsetId, offsetAmount, tradeTime)); }