PeList { public static <T extends Pe> int getMips(List<T> peList, int id) { Pe pe = getById(peList, id); if (pe != null) { return pe.getMips(); } return -1; }  static Pe getById(List<T> peList, int id); static int getMips(List<T> peList, int id); static int getTotalMips(List<T> peList); static double getMaxUtilization(List<T> peList); static double getMaxUtilizationAmongVmsPes(List<T> peList, Vm vm); static Pe getFreePe(List<T> peList); static int getNumberOfFreePes(List<T> peList); static boolean setPeStatus(List<T> peList, int id, int status); static int getNumberOfBusyPes(List<T> peList); static void setStatusFailed(
			List<T> peList,
			String resName,
			int hostId,
			boolean failed); static void setStatusFailed(List<T> peList, boolean failed);  }
@Test public void testGetMips() { assertEquals(MIPS, PeList.getMips(peList, 0), 0); assertEquals(MIPS, PeList.getMips(peList, 1), 0); assertEquals(-1, PeList.getMips(peList, 2)); }