@Test public void shouldReturnValidTargetedKeywords() throws Exception { ShopperProfile shopperProfile = parseJsonResourceFile("full_profile.json", ShopperProfile.class, gson); Profile profile = shopperProfile.getProfile(); Map<String, String> targetedKeyWords = new HashMap<>(); targetedKeyWords.put("interests", "stuff1_HIGH stuff2_LOW stuff3_MED"); targetedKeyWords.put("brands", "company1_MED company2_LOW company3_HIGH"); assertEquals(2, profile.getTargetingKeywords().size()); assertEquals(targetedKeyWords, profile.getTargetingKeywords()); }
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();  }