@Test
public void updateNamespaceIamRoleAuthorizationAssertCallsService()
{

    String expectedNamespace = "namespace";
    NamespaceIamRoleAuthorizationUpdateRequest expectedRequest = new NamespaceIamRoleAuthorizationUpdateRequest();
    NamespaceIamRoleAuthorization expectedResult = new NamespaceIamRoleAuthorization();
    when(namespaceIamRoleAuthorizationService.updateNamespaceIamRoleAuthorization(any(), any())).thenReturn(expectedResult);
    NamespaceIamRoleAuthorization actualResult =
        namespaceIamRoleAuthorizationRestController.updateNamespaceIamRoleAuthorization(expectedNamespace, expectedRequest);
    verify(namespaceIamRoleAuthorizationService).updateNamespaceIamRoleAuthorization(expectedNamespace, expectedRequest);
    verifyNoMoreInteractions(namespaceIamRoleAuthorizationService);
    assertEquals(expectedResult, actualResult);
}