@Test
public void testGetWithSuccess()
{

    // Given
    final Map<String, String> anyUrlParameters = new HashMap<>();
    final OrderParams anyOrderParams = new OrderParams();
    final User anyUser = new User();
    final Set<Class<? extends BaseDimensionalItemObject>> targetEntities = new HashSet<>(
        asList( Indicator.class ) );
    final List<BaseDimensionalItemObject> itemsFound = asList( new Indicator() );
    // When
    when( dataItemServiceFacade.extractTargetEntities( anyList() ) ).thenReturn( targetEntities );
    when( aclService.canRead( anyUser, Indicator.class ) ).thenReturn( true );
    when( dataItemServiceFacade.retrieveDataItemEntities(
        anySet(), anyList(), any( WebOptions.class ), any( OrderParams.class ) ) ).thenReturn( itemsFound );
    final ResponseEntity<RootNode> actualResponse = dataItemQueryController.getJson( anyUrlParameters,
        anyOrderParams, anyUser );
    // Then
    assertThat( actualResponse, is( not( nullValue() ) ) );
    assertThat( actualResponse.getStatusCode(), is( FOUND ) );
    verify( responseHandler, times( 1 ) ).addResultsToNode( any( RootNode.class ), anyList(), anyList() );
    verify( responseHandler, times( 1 ) ).addPaginationToNode( any( RootNode.class ), anyList(), any(), any(),
        anyList() );
}