Processor extends ResourceManageableAbstract { public double getTotalMips(){ return getMips()* getCapacity(); } Processor(Vm vm, double pesMips, long numberOfPes); private  Processor(); double getTotalMips(); double getMips(); void setMips(final double newMips); @Override long getCapacity(); @Override long getAvailableResource(); @Override long getAllocatedResource(); @Override boolean setCapacity(long numberOfPes); Vm getVm(); static final Processor NULL; }
@Test public void testGetTotalMipsCapacity() { final Processor instance = createDefaultProcessor(); final double expResult = PE_MIPS * NUMBER_OF_PES; assertEquals(expResult, instance.getTotalMips()); }