---
title: "testComplexNullableOptionalRequest(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/testcomplexnullableoptionalrequest(with:completion:)"
---

# testComplexNullableOptionalRequest(with:completion:)

## Declaration

```swift
func testComplexNullableOptionalRequest(with params: MTRUnitTestingClusterTestComplexNullableOptionalRequestParams, completion: @escaping @Sendable (MTRUnitTestingClusterTestComplexNullableOptionalResponseParams?, (any Error)?) -> Void)
```

```swift
func testComplexNullableOptionalRequest(with params: MTRUnitTestingClusterTestComplexNullableOptionalRequestParams) async throws -> MTRUnitTestingClusterTestComplexNullableOptionalResponseParams
```
