def METHOD_NAME(self):
    with self.assertRaises(ValueError):
        jarray.array([1, 2], 'x')
    with self.assertRaises(TypeError):
        jarray.array([1, 2])
    with self.assertRaises(TypeError):
        jarray.array([1, 2], 6)
    with self.assertRaises(TypeError):
        jarray.array([1, 2], StringBuilder())