cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/test/java/org/cloudbus/cloudsim/resources/SanStorageTest.java
@Test
    public void testGetMaxTransferRate() {
        final HarddriveStorage hd = new HarddriveStorage(CAPACITY);
        //creates a SAN with bw greater than the disk rate of the super class HarddriveStorage
        double bandwidth = hd.getMaxTransferRate() * 100;
        SanStorage instance = createSanStorage(bandwidth);
        final double diskRate = hd.getMaxTransferRate();
        assertEquals(diskRate, instance.getMaxTransferRate(), 0.0);

        //creates a SAN with bw lower than the disk rate of the super class HarddriveStorage
        bandwidth = hd.getMaxTransferRate() / 2;
        instance = createSanStorage(bandwidth);
        assertEquals(bandwidth, instance.getMaxTransferRate(), 0.0);
    }
/**
     * The transfer time is limited to the minimum value between the disk rate
     * (defined by the HarddriveStorage super class) and the bandwidth.
     * If the HOST_BW is greater than the disk rate, the max transfer rate will
     * be limited to the disk rate.
     * If the disk rate is greater than the bandwidth, the max transfer rate will
     * be limited to the bandwidth.
     */
The transfer time is limited to the minimum value between the disk rate
(defined by the HarddriveStorage super class) and the bandwidth.
If the HOST_BW is greater than the disk rate, the max transfer rate will
be limited to the disk rate.
If the disk rate is greater than the bandwidth, the max transfer rate will
be limited to the bandwidth.
The transfer time is limited to the minimum value between the disk rate ( defined by the HarddriveStorage super class ) and the bandwidth . If the HOST_BW is greater than the disk rate the max transfer rate will be limited to the disk rate . If the disk rate is greater than the bandwidth the max transfer rate will be limited to the bandwidth .
@Test
    public void testGetMaxTransferRate() {
        final HarddriveStorage hd = new HarddriveStorage(CAPACITY);
        double bandwidth = hd.getMaxTransferRate() * 100;
        SanStorage instance = createSanStorage(bandwidth);
        final double diskRate = hd.getMaxTransferRate();
        assertEquals(diskRate, instance.getMaxTransferRate(), 0.0);
        bandwidth = hd.getMaxTransferRate() / 2;
        instance = createSanStorage(bandwidth);
        assertEquals(bandwidth, instance.getMaxTransferRate(), 0.0);
    }
@ Test public void testGetMaxTransferRate ( ) { final HarddriveStorage hd = new HarddriveStorage ( CAPACITY ) ; double bandwidth = hd . getMaxTransferRate ( ) * 100 ; SanStorage instance = createSanStorage ( bandwidth ) ; final double diskRate = hd . getMaxTransferRate ( ) ; assertEquals ( diskRate , instance . getMaxTransferRate ( ) , 0.0 ) ; bandwidth = hd . getMaxTransferRate ( ) / 2 ; instance = createSanStorage ( bandwidth ) ; assertEquals ( bandwidth , instance . getMaxTransferRate ( ) , 0.0 ) ; }
The transfer time is limited to the minimum value between the disk rate
 (defined by the HarddriveStorage super class) and the bandwidth.
The transfer time is limited to the minimum value between the disk rate ( defined by the HarddriveStorage super class ) and the bandwidth .
//creates a SAN with bw greater than the disk rate of the super class HarddriveStorage //creates a SAN with bw lower than the disk rate of the super class HarddriveStorage