@Test public void shouldReturnRecommendedProducts() throws Exception { ShopperProfile shopperProfile = parseJsonResourceFile("full_profile.json", ShopperProfile.class, gson); Profile profile = shopperProfile.getProfile(); assertNotNull(profile.getRecommendedProducts()); assertEquals(10, profile.getRecommendedProducts().size()); }
public Profile getProfile() { return profile; }
ShopperProfile { public Profile getProfile() { return profile; } }
ShopperProfile { public Profile getProfile() { return profile; }  }
ShopperProfile { public Profile getProfile() { return profile; }  Profile getProfile(); String getApiVersion(); @Override String toString(); }
ShopperProfile { public Profile getProfile() { return profile; }  Profile getProfile(); String getApiVersion(); @Override String toString();  }