### Question:
BidOrderServiceImpl implements OrderService<BidOrder, ColoredCoinsBidOrderPlacement> { @Override public BidOrder getNextOrder(long assetId) { final TransactionalDataSource dataSource = databaseManager.getDataSource(); return bidOrderTable.getNextOrder(dataSource, assetId); } BidOrderServiceImpl(
        final DatabaseManager databaseManager,
        final BidOrderTable bidOrderTable,
        final Blockchain blockchain,
        final IteratorToStreamConverter<BidOrder> converter
    ); @Inject  BidOrderServiceImpl(
        final DatabaseManager databaseManager,
        final BidOrderTable bidOrderTable,
        final Blockchain blockchain
    ); @Override int getCount(); @Override BidOrder getOrder(long orderId); @Override Stream<BidOrder> getAll(int from, int to); @Override Stream<BidOrder> getOrdersByAccount(long accountId, int from, int to); @Override Stream<BidOrder> getOrdersByAccountAsset(final long accountId, final long assetId, int from, int to); @Override Stream<BidOrder> getSortedOrders(long assetId, int from, int to); @Override BidOrder getNextOrder(long assetId); @Override void addOrder(Transaction transaction, ColoredCoinsBidOrderPlacement attachment); @Override void removeOrder(long orderId); @Override void updateQuantityATU(long quantityATU, BidOrder orderBid);  }### Answer:
@Test void shouldGetNextOrder() { final long assetId = 10L; final TransactionalDataSource dataSource = mock(TransactionalDataSource.class); final BidOrder order = mock(BidOrder.class); when(databaseManager.getDataSource()).thenReturn(dataSource); when(bidOrderTable.getNextOrder(dataSource, assetId)).thenReturn(order); final BidOrder orderActual = orderService.getNextOrder(assetId); assertEquals(order, orderActual); }