@Test
public void testRetrieveDataItemEntitiesWhenTargetEntitiesIsEmpty()
{

    // Given
    final Set<Class<? extends BaseDimensionalItemObject>> anyTargetEntities = emptySet();
    final List<BaseDimensionalItemObject> expectedItemsFound = asList( new Indicator(), new Indicator() );
    final List<String> anyFilters = asList( "anyFilter" );
    final WebOptions anyWebOptions = mockWebOptions( 10, 1 );
    final Set<String> anyOrdering = new HashSet<>( asList( "name:desc" ) );
    final OrderParams anyOrderParams = new OrderParams( anyOrdering );
    final Query anyQuery = from( new Schema( Indicator.class, "indicator", "indicators" ) );
    // When
    when( queryService.getQueryFromUrl( any(), anyList(), anyList(),
        any( Pagination.class ), any( Type.class ) ) ).thenReturn( anyQuery );
    when( (List<BaseDimensionalItemObject>) queryService.query( any( Query.class ) ) )
        .thenReturn( expectedItemsFound );
    final List<BaseDimensionalItemObject> actualDimensionalItems = dataItemServiceFacade
        .retrieveDataItemEntities( anyTargetEntities, anyFilters, anyWebOptions, anyOrderParams );
    // Then
    assertThat( actualDimensionalItems, is( empty() ) );
}