import org.junit.Test;

import static org.junit.Assert.assertTrue;

public class JvmCaching {

  @Test
  public void testCache() {

    assertTrue(Integer.valueOf(512) == Integer.valueOf(512));

  }
}

Add small testcase for JVM internal caching By default, from -128 to 127 for Integer
Add small testcase for JVM internal caching
By default, from -128 to 127 for Integer
