@Test
public void testAddResultsToNodeWithSuccess()
{

    // Given
    final RootNode anyRootNode = new RootNode( "any" );
    final List<BaseDimensionalItemObject> anyDimensionalItems = asList( new BaseDimensionalItemObject( "any" ) );
    final List<String> anyFields = asList( "any" );
    final CollectionNode anyCollectionNode = new CollectionNode( "any" );
    // When
    when( fieldFilterService.toCollectionNode( any(), any() ) ).thenReturn( anyCollectionNode );
    responseHandler.addResultsToNode( anyRootNode, anyDimensionalItems, anyFields );
    // Then
    assertThat( anyRootNode, is( notNullValue() ) );
    assertThat( anyRootNode.getName(), is( equalTo( "any" ) ) );
    assertThat( anyRootNode.getChildren(), hasSize( 1 ) );
    assertThat( anyRootNode.getChildren().get( 0 ).isCollection(), is( true ) );
}