cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerSpaceSharedTest.java
@Test
    public void testGetTotalUtilizationOfCpu_MoreCloudletsThanPes() {
        final long mips = 1000;
        final int numberOfPes = 2;
        final int numberOfCloudlets = 4;

        final CloudletSchedulerSpaceShared instance = newSchedulerWithSingleCoreRunningCloudlets(mips, numberOfPes, numberOfCloudlets);
        final double expected = 1;
        assertEquals(expected, instance.getRequestedCpuPercentUtilization(0), 0);
    }
/**
     * Submits 4 cloudlets that require one PE each one,
     * but since there is just 2 VM PEs, just 2 cloudlets
     * will be added to exec list.
     */
Submits 4 cloudlets that require one PE each one,
but since there is just 2 VM PEs, just 2 cloudlets
will be added to exec list.
Submits 4 cloudlets that require one PE each one but since there is just 2 VM PEs just 2 cloudlets will be added to exec list .
@Test
    public void testGetTotalUtilizationOfCpu_MoreCloudletsThanPes() {
        final long mips = 1000;
        final int numberOfPes = 2;
        final int numberOfCloudlets = 4;
        final CloudletSchedulerSpaceShared instance = newSchedulerWithSingleCoreRunningCloudlets(mips, numberOfPes, numberOfCloudlets);
        final double expected = 1;
        assertEquals(expected, instance.getRequestedCpuPercentUtilization(0), 0);
    }
@ Test public void testGetTotalUtilizationOfCpu_MoreCloudletsThanPes ( ) { final long mips = 1000 ; final int numberOfPes = 2 ; final int numberOfCloudlets = 4 ; final CloudletSchedulerSpaceShared instance = newSchedulerWithSingleCoreRunningCloudlets ( mips , numberOfPes , numberOfCloudlets ) ; final double expected = 1 ; assertEquals ( expected , instance . getRequestedCpuPercentUtilization ( 0 ) , 0 ) ; }
Submits 4 cloudlets that require one PE each one,
 but since there is just 2 VM PEs, just 2 cloudlets
 will be added to exec list.
Submits 4 cloudlets that require one PE each one but since there is just 2 VM PEs just 2 cloudlets will be added to exec list .