MoveEntityInListOperation { public boolean hasMoved() { return this.hasMoved; } MoveEntityInListOperation(List<E> entities, String fromSlug, String toSlug,
            HasOrderedCollections.RelativePosition relativePosition); List<E> getEntities(); List<Integer> getPositions(); boolean hasMoved();  }
@Test public void testMove() throws Exception { List<ExampleEntity> entities = new LinkedList<ExampleEntity>(); entities.add(new ExampleEntity("first", UUID.randomUUID())); entities.add(new ExampleEntity("second", UUID.randomUUID())); MoveEntityInListOperation<ExampleEntity> moveOp = new MoveEntityInListOperation<ExampleEntity>(entities, "first", "second", HasOrderedCollections.RelativePosition.AFTER); Assert.assertTrue(moveOp.hasMoved()); }