public void addTest(PrioritizedTest prioritizedTest) {
   final int leastBusySlot = findLeastBusySlot();
   runTime[leastBusySlot] += prioritizedTest.getTotalRuntime();
   //noinspection unchecked
   lists[leastBusySlot].add(prioritizedTest.getClazz());
 }
 public int compare(Object o, Object o1) {
   PrioritizedTest re = (PrioritizedTest) o;
   PrioritizedTest re1 = (PrioritizedTest) o1;
   return re.getPriority() - re1.getPriority();
 }