@Test public void testMultipleCategoriesCriteria() throws IOException { final Map<String, Object> container = new LinkedHashMap<>(); final Map<String, Object> messageObject = new LinkedHashMap<>(); messageObject.put("alert", "Howdy"); messageObject.put("sound", "default"); messageObject.put("badge", 2); container.put("message", messageObject); Map<String, Object> criteria = new HashMap<>(); criteria.put("categories", Arrays.asList("soccer", "olympics")); container.put("criteria", criteria); final UnifiedPushMessage unifiedPushMessage = parsePushMessage(container); assertNotNull(unifiedPushMessage.getCriteria().getCategories()); assertEquals(2, unifiedPushMessage.getCriteria().getCategories().size()); assertTrue(unifiedPushMessage.getCriteria().getCategories().contains("olympics")); assertTrue(unifiedPushMessage.getCriteria().getCategories().contains("soccer")); }
public Criteria getCriteria() { return criteria; }
UnifiedPushMessage implements Serializable { public Criteria getCriteria() { return criteria; } }
UnifiedPushMessage implements Serializable { public Criteria getCriteria() { return criteria; }  }
UnifiedPushMessage implements Serializable { public Criteria getCriteria() { return criteria; }  Criteria getCriteria(); void setCriteria(Criteria criteria); Config getConfig(); void setConfig(Config config); Message getMessage(); void setMessage(Message message); String toStrippedJsonString(); String toMinimizedJsonString(); String toJsonString(); @Override String toString(); }
UnifiedPushMessage implements Serializable { public Criteria getCriteria() { return criteria; }  Criteria getCriteria(); void setCriteria(Criteria criteria); Config getConfig(); void setConfig(Config config); Message getMessage(); void setMessage(Message message); String toStrippedJsonString(); String toMinimizedJsonString(); String toJsonString(); @Override String toString();  }