@Test
public void testCutoff_shortage() {

    StockOpImpl operator = new StockOpImpl();
    List<Stock> stocks = Arrays.asList(StockFactory.create(new DateTime(), 0, 100, 10));
    List<Shipment> shipments = Arrays.asList();
    MockResult<Stock> newStocks = new MockResult<Stock>();
    MockResult<Shipment> newShipments = new MockResult<Shipment>();
    operator.cutoff(stocks, shipments, newStocks, newShipments);
    assertThat(newStocks.getResults().size(), is(1));
    assertThat(newShipments.getResults().size(), is(0));
}