### Question:
DexSmartContractService { public boolean hasFrozenMoney(DexOrder order) { if (order.getType() == OrderType.SELL) { return true; } return isDepositForOrderExist(order.getFromAddress(), order.getId(), EthUtil.atmToEth(order.getOrderAmount()).multiply(order.getPairRate())); } @Inject  DexSmartContractService(PropertiesHolder propertiesHolder, KeyStoreService keyStoreService, DexEthService dexEthService,
                                   EthereumWalletService ethereumWalletService, DexTransactionDao dexTransactionDao,
                                   DexBeanProducer dexBeanProducer, TaskDispatchManager taskDispatchManager); @PostConstruct void init(); String deposit(String passphrase, Long offerId, Long accountId, String fromAddress, BigInteger weiValue, Long gas, DexCurrency currency); String withdraw(String passphrase, long accountId, String fromAddress, BigInteger orderId, Long gas); String initiate(String passphrase, long accountId, String fromAddress, Long orderId, byte[] secretHash, String recipient, Integer refundTimestamp, Long gas); String approve(String passphrase, byte[] secret, String fromAddress, long accountId); String refund(byte[] secretHash, String passphrase, String fromAddress, long accountId, boolean waitConfirmation); String refundAndWithdraw(byte[] secretHash, String passphrase, String fromAddress, long accountId, boolean waitConfirmation); boolean hasFrozenMoney(DexOrder order); SwapDataInfo getSwapData(byte[] secretHash); SwapDataInfo getSwapData(Credentials credentials, byte[] secretHash); String getHashForAtomicSwapTransaction(long orderId); EthDepositsWithOffset getUserActiveDeposits(String user, long offset, long limit); EthDepositsWithOffset getUserFilledOrders(String user, long offset, long limit); List<ExpiredSwap> getExpiredSwaps(String user); UserAddressesWithOffset getUserAddresses(long offset, long limit); boolean isDepositForOrderExist(String userAddress, Long orderId); boolean isDepositForOrderExist(String userAddress, Long orderId, BigDecimal amountEth); List<String> getEthUserAddresses(String passphrase, Long accountId); DepositedOrderDetails getDepositedOrderDetails(String address, Long orderId);  }### Answer:
@Test void testHasFrozenMoneyForSellOrder() { order.setType(OrderType.SELL); boolean result = service.hasFrozenMoney(order); assertTrue(result); }