@Test
public void testFifoOrderingPolicy() {

  FifoOrderingPolicy<MockSchedulableEntity> policy = 
    new FifoOrderingPolicy<MockSchedulableEntity>();
  MockSchedulableEntity r1 = new MockSchedulableEntity();
  MockSchedulableEntity r2 = new MockSchedulableEntity();
  assertThat(policy.getComparator().compare(r1, r2)).isEqualTo(0);
  
  r1.setSerial(1);
  assertThat(policy.getComparator().compare(r1, r2)).isEqualTo(1);
  
  r2.setSerial(2);
  assertThat(policy.getComparator().compare(r1, r2)).isEqualTo(-1);
}