@Test
public void testSearch() {

    ComponentSearchParams searchParams = ComponentSearchParams.builder()
            .withComponentType(SW360ComponentType.INNER_SOURCE)
            .retrieveFields("name", "releaseIds")
            .orderAscending("createdOn")
            .build();
    when(componentClient.search(searchParams))
            .thenReturn(createSearchResult(Collections.singletonList(sparseComponent)));
    List<SW360SparseComponent> components = block(componentClientAdapter.search(searchParams));
    assertThat(components).hasSize(1);
    assertThat(components).containsExactly(sparseComponent);
}