@@ -0,0 +1,1060 @@
+import cloudsimulator.clustersimulator.SimulateFailures;%0Aimport cloudsimulator.clustersimulator.dto.SimulatedCluster;%0Aimport cloudsimulator.clustersimulator.dto.TCGroup;%0Aimport org.junit.Test;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport java.util.Arrays;%0Aimport java.util.LinkedList;%0A%0Apublic class TestSimulatedFailure %7B%0A%0A    @Test%0A    public void testVmForFailure() %7B%0A        SimulateFailures simulateFailures = new SimulateFailures();%0A        double sla = 80.00;%0A        long vmCount = 1;%0A        SimulatedCluster simulatedCluster =%0A                new SimulatedCluster(%0A                        new LinkedList%3CTCGroup%3E(Arrays.asList(%0A                                new TCGroup(%22TC3%22, sla, vmCount))%0A                        )%0A                );%0A%0A%0A        long secondsToFailure = 0;%0A        while (simulatedCluster.getCluster().size() %3E 0) %7B%0A            simulateFailures.simulateFailures(simulatedCluster);%0A            secondsToFailure++;%0A        %7D%0A%0A        System.out.println(%22Seconds until failure: %22 + secondsToFailure);%0A    %7D%0A%7D%0A

Add unit test for VM failure simulator.