         }
     }
     
+    func testStatementArgumentsNSArrayInitializerFromInvalidNSArray() {
+        let persons = [ // NSArray, because of the heterogeneous values
+            ["Arthur", NonDatabaseConvertibleObject()],
+            ["Barbara", NonDatabaseConvertibleObject()],
+            ]
+        
+        for person in persons {
+            XCTAssertNil(StatementArguments(person))
+        }
+    }
+    
     func testStatementArgumentsNSDictionaryInitializer() {
         assertNoError {
             let dbQueue = try makeDatabaseQueue()

#else
    import GRDB
#endif

class StatementArgumentsFoundationTests: GRDBTestCase {


            }
        }
    }
    
    func testStatementArgumentsNSDictionaryInitializerFromInvalidNSDictionary() {
        let dictionary: NSDictionary = ["a": NSObject()]
        let arguments = StatementArguments(dictionary)
        XCTAssertTrue(arguments == nil)
        
        let dictionaryInvalidKeyType: NSDictionary = [NSNumber(integer: 1): "bar"]
        let arguments2 = StatementArguments(dictionaryInvalidKeyType)
        XCTAssertTrue(arguments2 == nil)
    }
}
