@Test
public void testCutoff() {

    StockOpImpl operator = new StockOpImpl();
    List<Stock> stocks = new ArrayList<Stock>();
    stocks.add(StockFactory.create(new DateTime(), 0, 100, 10));
    List<Shipment> shipments = new ArrayList<Shipment>();
    shipments.add(ShipmentFactory.create(new DateTime(), 10, 100));
    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(1));
}