@SuppressWarnings("JavaReflectionMemberAccess")
    @Test public void testHiddenApi() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
		final Object uid = PackageManager.class.getMethod("getUidForSharedUser", String.class).invoke(condom.getPackageManager(),"android.uid.system");
		assertEquals(1000, (int) uid);
		// This hidden API is used by some 3rd-party libraries, as reported in issue #9 on GitHub.
		if (SDK_INT >= LOLLIPOP) PackageManager.class.getMethod("getUserBadgeForDensity", UserHandle.class, int.class)
				.invoke(condom.getPackageManager(), Process.myUserHandle(), DisplayMetrics.DENSITY_DEFAULT);
	}
Miscellaneous test cases

Created by Oasis on 2017/4/10.
library/src/androidTest/java/com/oasisfeng/condom/CondomMiscTest.java