### Question:
TradeServiceImpl implements TradeService { @Override public int getCount() { return tradeTable.getCount(); } 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 shouldGetCount() { final int count = 100; when(tradeTable.getCount()).thenReturn(100); final int countActual = tradeService.getCount(); assertEquals(count, countActual); }