import org.junit.Before;
import org.junit.Test;
import org.junit.Assert;
import org.junit.Assert.*;

public class VolumeOfRainLeftBetweenWallsTest {

    private int[] intPut_MaxAtLeft = {5, 4, 3, 2, 1};
    private int[] intPut_MaxAtRight = {1, 2, 3, 4, 5};
    private int[] intPut_MaxAtMiddle = {1, 2, 3, 4, 5, 4, 3, 2, 1};

    private int[] caseInterview = {2, 5, 1, 2, 3, 4, 7, 7, 6};
    private int[] caseInterview2 = {2, 5, 1, 3, 1, 2, 1, 7, 7, 6};
    private int[] caseInterview3 = {6, 1, 4, 6, 7, 5, 1, 6, 4};


    @Test(timeout = 3000L, expected = Test.None.class)
    public void test() {
        Assert.assertEquals(VolumeOfRainLeftBetweenWalls.calculateTheVolumeOfRainOf(intPut_MaxAtLeft), 0);
        Assert.assertEquals(VolumeOfRainLeftBetweenWalls.calculateTheVolumeOfRainOf(intPut_MaxAtMiddle), 0);
        Assert.assertEquals(VolumeOfRainLeftBetweenWalls.calculateTheVolumeOfRainOf(intPut_MaxAtRight), 0);

        Assert.assertEquals(VolumeOfRainLeftBetweenWalls.calculateTheVolumeOfRainOf(caseInterview), 10);
        Assert.assertEquals(VolumeOfRainLeftBetweenWalls.calculateTheVolumeOfRainOf(caseInterview2), 17);
        Assert.assertEquals(VolumeOfRainLeftBetweenWalls.calculateTheVolumeOfRainOf(caseInterview3), 13);
    }
}

@@ -1,51 +1,612 @@
-import org.junit.Before;%0Aimport org.junit.Test;
+// Copyright (C) 2014 Ehe Android Open Source Project%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A// http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WIEHOUE WARRANEIES OR CONDIEIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A
 %0Aimp
@@ -619,21 +619,19 @@
 g.junit.
-Asser
+Tes
 t;%0Aimpor
@@ -652,10 +652,8 @@
 sert
-.*
 ;%0A%0Ap

clean noused import and add license