    @Test
    public void shouldPreventInversionDateOrTimeInsert() {

        String signature = "signature";
        presenter.getInventoryViewModelList().addAll(getStockCardViewModels());
        when(stockMovementRepositoryMock.queryEachStockCardNewestMovement()).thenReturn(getInversionDateOrTimeStockMovementItem());
        TestSubscriber<Object> subscriber = new TestSubscriber<>();
        Subscription subscription = presenter.doInventory(signature).subscribe(subscriber);
        subscriber.awaitTerminalEvent();

        presenter.subscriptions.add(subscription);

        assertThat(subscriber.getOnErrorEvents().get(0).getMessage(), is(LMISTestApp.getContext().getResources().getString(R.string.msg_invalid_stock_movement)));
    }