}
@Test
public void testDownWithMiddle25AndNotFirst() {
Move first = createMove(); //1000
Move to = createMove(); //2000
for (int i = 0; i < 25; i++) {
createMove();
}
Move from = createMove();
Integer fromWeight = from.getWeight();
Integer toWeight = to.getWeight();
Integer firstWeight = first.getWeight();
flush();
moveService.down(from.getId(), to.getId());
from = moveService.findOne(from.getId());
assertEquals(Integer.valueOf(toWeight - (toWeight - firstWeight) / 2), from.getWeight());
}