code: public PagedList<NotificationHubResourceInner> list(final String resourceGroupName, final String namespaceName) {
          ServiceResponse<Page<NotificationHubResourceInner>> response = listSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single();
          return new PagedList<NotificationHubResourceInner>(response.body()) {
              @Override
              public Page<NotificationHubResourceInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists the notification hubs associated with a namespace.
  
  @param resourceGroupName The name of the resource group.
  @param namespaceName The namespace name.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;NotificationHubResourceInner&gt; object if successful.