@@ -0,0 +1,1740 @@
+/*%0A * Licensed to Elasticsearch under one or more contributor%0A * license agreements. See the NOTICE file distributed with%0A * this work for additional information regarding copyright%0A * ownership. Elasticsearch licenses this file to you under%0A * the Apache License, Version 2.0 (the %22License%22); you may%0A * 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,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage org.elasticsearch.index.engine;%0A%0Aimport org.apache.lucene.util.RamUsageTester;%0Aimport org.elasticsearch.index.translog.Translog;%0Aimport org.elasticsearch.test.ESTestCase;%0A%0Apublic class VersionValueTests extends ESTestCase %7B%0A%0A    public void testIndexRamBytesUsed() %7B%0A        Translog.Location translogLoc = null;%0A        if (randomBoolean()) %7B%0A            translogLoc = new Translog.Location(randomNonNegativeLong(), randomNonNegativeLong(), randomInt());%0A        %7D%0A        IndexVersionValue versionValue = new IndexVersionValue(translogLoc, randomLong(), randomLong(), randomLong());%0A        assertEquals(RamUsageTester.sizeOf(versionValue), versionValue.ramBytesUsed());%0A    %7D%0A%0A    public void testDeleteRamBytesUsed() %7B%0A        DeleteVersionValue versionValue = new DeleteVersionValue(randomLong(), randomLong(), randomLong(), randomLong());%0A        assertEquals(RamUsageTester.sizeOf(versionValue), versionValue.ramBytesUsed());%0A    %7D%0A%0A%7D%0A

Add VersionValueTests back to es test suite