@Test
public void testSearchWithPaging() {

    ComponentSearchParams searchParams = ComponentSearchParams.builder()
            .withComponentType(SW360ComponentType.OSS)
            .withPage(11)
            .withPageSize(17)
            .orderAscending("createdOn")
            .build();
    when(componentClient.search(searchParams))
            .thenReturn(createSearchResult(Collections.singletonList(sparseComponent)));
    PagingResult<SW360SparseComponent> result = block(componentClientAdapter.searchWithPaging(searchParams));
    assertThat(result.getResult()).containsOnly(sparseComponent);
    assertThat(result.getPaging()).isEqualTo(PAGING);
}