/*
 * Licensed to the University of California, Berkeley under one or more contributor license
 * agreements. See the NOTICE file distributed with this work for additional information regarding
 * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance with the License. You may obtain a
 * copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */

package tachyon;

import org.junit.Assert;
import org.junit.Test;

/**
 * Unit tests for tachyon.Pair
 */
public class PairTest {
  private String mStrType = "test";
  private Integer mIntegerType = 7883;
  private Long mLongType = 9887L;
  private Double mDoubleType = 3.14159;
  private Boolean mBoolType = false;
  private Character mCharType = 'a';
  private Object[] mObjs = new Object[6];

  @Test
  public void constructorTest() {
    mObjs[0] = mStrType;
    mObjs[1] = mIntegerType;
    mObjs[2] = mLongType;
    mObjs[3] = mDoubleType;
    mObjs[4] = mBoolType;
    mObjs[5] = mCharType;

    for (int j = 0; j < mObjs.length - 1; j ++) {
      for (int k = j + 1; k < mObjs.length; k ++) {
        Pair<Object, Object> tPair = new Pair<Object, Object>(mObjs[j], mObjs[k]);
        Assert.assertEquals(mObjs[j], tPair.getFirst());
        Assert.assertEquals(mObjs[k], tPair.getSecond());
        Assert.assertNotSame(mObjs[k], tPair.getFirst());
        Assert.assertNotSame(mObjs[j], tPair.getSecond());
      }
    }
  }
}

@@ -930,174 +930,234 @@
 ate 
-String mStrType = %22test%22;%0A  private Integer mIntegerType = 7883;%0A  private Long mLongType = 9887L;%0A  private Double mDoubleType = 3.14159;%0A  private Boolean mBoolType
+static final String STRTYPE = %22test%22;%0A  private static final Integer INTEGERTYPE = 7883;%0A  private static final Long LONGTYPE = 9887L;%0A  private static final Double DOUBLETYPE = 3.14159;%0A  private static final Boolean BOOLTYPE
  = f
@@ -1172,16 +1172,29 @@
 private 
+static final 
 Characte
@@ -1195,25 +1195,24 @@
 aracter 
-mCharType
+CHARTYPE
  = 'a';%0A
@@ -1315,16 +1315,15 @@
 %5D = 
-mStrType
+STRTYPE
 ;%0A  
@@ -1339,20 +1339,19 @@
 %5D = 
-mIntegerType
+INTEGERTYPE
 ;%0A  
@@ -1367,17 +1367,16 @@
 %5D = 
-mLongType
+LONGTYPE
 ;%0A  
@@ -1392,19 +1392,18 @@
 %5D = 
-mDoubleType
+DOUBLETYPE
 ;%0A  
@@ -1419,17 +1419,16 @@
 %5D = 
-mBoolType
+BOOLTYPE
 ;%0A  
@@ -1444,17 +1444,16 @@
 %5D = 
-mCharType
+CHARTYPE
 ;%0A%0A 

Change private member variable to private static final in PairTest.java