### Question:
ResourceTypeRequest { public SCIMResponse<PagedByIndexSearchResult<ResourceType>> readAllResourceTypes() { return resourceRequestDelegate.readMultipleResourcesWithoutPaging(new GenericType<PagedByIndexSearchResult<ResourceType>>(){}); } ResourceTypeRequest(WebTarget targetSystem, SCIMRequest scimRequest); SCIMResponse<ResourceType> readSingleResourceType(String id); SCIMResponse<PagedByIndexSearchResult<ResourceType>> readAllResourceTypes();  }### Answer:
@Test public void readAllResourceTypes() throws IOException { JsonNode jsonResponse = readResponseResourceTypesAsJsonNodeFromFile("read_resource_types_index_paging.json"); wireMockServer.stubFor(get(urlEqualTo("/ResourceTypes")).willReturn(configureMockedResponse(OK, jsonResponse))); PagedByIndexSearchResult<ResourceType> responseResourceType = SCIMClientService.builder(DEFAULT_URL) .build() .buildResourceTypeRequest() .readAllResourceTypes() .get(); assertAll( () -> assertAll(getPagedByIndexResponseAssertions(responseResourceType)), () -> { ResourceType resourceType = responseResourceType.getResources().stream().findAny().orElseThrow(RuntimeException::new); assertAll("Common resourceAttributes", getCommonResourceAssertions(resourceType, ResourceType.SCHEMA)); assertNotNull(resourceType.getName()); assertNotNull(resourceType.getSchema()); assertNotNull(resourceType.getEndpoint()); } ); }