@Test
 public void testFixedPriorityStrategy() {
   int[] serverIds = new int[] {55, 101, 66};
   SlavePriority fixed = SlavePriorities.fixed();
   ArrayList<Slave> slaves = new ArrayList<Slave>(3);
   slaves.add(new FakeSlave(false, serverIds[0]));
   slaves.add(new FakeSlave(false, serverIds[1]));
   slaves.add(new FakeSlave(false, serverIds[2]));
   Iterator<Slave> sortedSlaves = fixed.prioritize(slaves).iterator();
   assertEquals(serverIds[1], sortedSlaves.next().getServerId());
   assertEquals(serverIds[2], sortedSlaves.next().getServerId());
   assertEquals(serverIds[0], sortedSlaves.next().getServerId());
   assertTrue(!sortedSlaves.hasNext());
 }