SecureRandomUtils { static boolean isAndroidRuntime() { if (isAndroid == -1) { final String runtime = System.getProperty("java.runtime.name"); isAndroid = (runtime != null && runtime.equals("Android Runtime")) ? 1 : 0; } return isAndroid == 1; } private  SecureRandomUtils(); static SecureRandom secureRandom(); static byte[] generateRandomBytes(int size);  }
@Test public void testIsNotAndroidRuntime() { assertFalse(SecureRandomUtils.isAndroidRuntime()); }