* YogaEntityConfiguration and the annotations are returned.
*/
@Test
public void testComplexCoreFields()
{
User carter = DataGenerator.carter();
carter.getFavoriteArtists().add( DataGenerator.neutralMilkHotel() );
carter.getFavoriteArtists().add( DataGenerator.arcadeFire() );
ResultTraverser traverser = new ResultTraverser();
getEntityConfigurationRegistry().register( new UserEntityConfigurationWithArtistCoreField() );
Map<String, Object> objectTree = doTraverse( carter, ":", traverser );
Assert.assertEquals( 2, objectTree.size() );
Assert.assertEquals( carter.getId(), objectTree.get( "id" ) );
List<Map<String, Object>> favoriteArtists = getList( objectTree, "favoriteArtists" );
Assert.assertNotNull( favoriteArtists );
Assert.assertEquals( 2, favoriteArtists.size() );
Map<String, Object> neutralMap = findItem( favoriteArtists, "name", "Neutral Milk Hotel" );