conscrypt: change test of SSL_set_cipher_lists

NativeCrypto.SSL_set_cipher_lists can accept the empty list as
per c/154191

Bug: 21816861

Change-Id: I96f6d2f7733c5316179bc26a63c9fd3b28451b26
diff --git a/src/test/java/org/conscrypt/NativeCryptoTest.java b/src/test/java/org/conscrypt/NativeCryptoTest.java
index 9e47e54..093ac5b 100644
--- a/src/test/java/org/conscrypt/NativeCryptoTest.java
+++ b/src/test/java/org/conscrypt/NativeCryptoTest.java
@@ -562,7 +562,7 @@
     public void test_SSL_set_cipher_lists() throws Exception {
         try {
             NativeCrypto.SSL_set_cipher_lists(NULL, null);
-            fail();
+            fail("Exception not thrown for null ssl and null list");
         } catch (NullPointerException expected) {
         }
 
@@ -571,19 +571,17 @@
 
         try {
             NativeCrypto.SSL_set_cipher_lists(s, null);
-            fail();
+            fail("Exception not thrown for null list");
         } catch (NullPointerException expected) {
         }
 
-        try {
-            NativeCrypto.SSL_set_cipher_lists(s, new String[] {});
-            fail();
-        } catch (IllegalArgumentException expected) {
-        }
+        // Explicitly checking that the empty list is allowed.
+        // b/21816861
+        NativeCrypto.SSL_set_cipher_lists(s, new String[]{});
 
         try {
             NativeCrypto.SSL_set_cipher_lists(s, new String[] { null });
-            fail();
+            fail("Exception not thrown for list with null element");
         } catch (NullPointerException expected) {
         }
 
@@ -600,7 +598,7 @@
         for (String illegal : illegals) {
             try {
                 NativeCrypto.SSL_set_cipher_lists(s, new String[] { illegal });
-                fail(illegal);
+                fail("Exception now thrown for illegal cipher: " + illegal);
             } catch (IllegalArgumentException expected) {
             }
         }