### Question:
TradeServiceImpl implements TradeService { @Override public Trade getTrade(long askOrderId, long bidOrderId) { return tradeTable.getTrade(askOrderId, bidOrderId); } TradeServiceImpl(
        final DatabaseManager databaseManager,
        final Blockchain blockchain,
        final TradeTable tradeTable,
        final IteratorToStreamConverter<Trade> converter
    ); @Inject  TradeServiceImpl(
        final DatabaseManager databaseManager,
        final Blockchain blockchain,
        final TradeTable tradeTable
    ); @Override Stream<Trade> getAllTrades(int from, int to); @Override int getCount(); @Override Trade getTrade(long askOrderId, long bidOrderId); @Override Stream<Trade> getAssetTrades(long assetId, int from, int to); @Override List<Trade> getLastTrades(long[] assetIds); @Override Stream<Trade> getAccountTrades(long accountId, int from, int to); @Override Stream<Trade> getAccountAssetTrades(long accountId, long assetId, int from, int to); @Override Stream<Trade> getAskOrderTrades(long askOrderId, int from, int to); @Override Stream<Trade> getBidOrderTrades(long bidOrderId, int from, int to); @Override int getTradeCount(long assetId); @Override Trade addTrade(long assetId, AskOrder askOrder, BidOrder bidOrder);  }### Answer:
@Test void shouldGetTrade() { final long askOrderId = 1L; final long bidOrderId = 2L; final Trade trade = mock(Trade.class); when(tradeTable.getTrade(askOrderId, bidOrderId)).thenReturn(trade); final Trade tradeActual = tradeService.getTrade(askOrderId, bidOrderId); assertEquals(trade, tradeActual); }