### Question:
PackageInfoCompat { public static long getLongVersionCode(@NonNull PackageInfo info) { if (BuildCompat.isAtLeastP()) { return info.getLongVersionCode(); } return info.versionCode; } private  PackageInfoCompat(); static long getLongVersionCode(@NonNull PackageInfo info);  }### Answer:
@Test public void getLongVersionCodeLowerBitsOnly() { PackageInfo info = new PackageInfo(); info.versionCode = 12345; assertEquals(12345L, PackageInfoCompat.getLongVersionCode(info)); }
@SdkSuppress(minSdkVersion = P) @Test public void getLongVersionCodeLowerAndUpperBits() { PackageInfo info = new PackageInfo(); info.setLongVersionCode(Long.MAX_VALUE); assertEquals(Long.MAX_VALUE, PackageInfoCompat.getLongVersionCode(info)); }