TR03112Utils { public static boolean isRedirectStatusCode(int statusCode) { switch (statusCode) { case 301: case 302: case 303: case 307: return true; default: return false; } }  static boolean checkSameOriginPolicy(URL url1, URL url2); static boolean isInCommCertificates(TlsServerCertificate serverCertificate, List<byte[]> commCertificates,
	    @Nullable String serverDesc); static boolean isRedirectStatusCode(int statusCode); static boolean DEVELOPER_MODE; }
@Test public void testIsRedirectStatusCode() { boolean result = TR03112Utils.isRedirectStatusCode(200); Assert.assertFalse(result); result = TR03112Utils.isRedirectStatusCode(300); Assert.assertFalse(result); result = TR03112Utils.isRedirectStatusCode(301); Assert.assertTrue(result); result = TR03112Utils.isRedirectStatusCode(302); Assert.assertTrue(result); result = TR03112Utils.isRedirectStatusCode(303); Assert.assertTrue(result); result = TR03112Utils.isRedirectStatusCode(304); Assert.assertFalse(result); result = TR03112Utils.isRedirectStatusCode(305); Assert.assertFalse(result); result = TR03112Utils.isRedirectStatusCode(306); Assert.assertFalse(result); result = TR03112Utils.isRedirectStatusCode(307); Assert.assertTrue(result); result = TR03112Utils.isRedirectStatusCode(400); Assert.assertFalse(result); }