Event { public String getEncodedQuery() { return mQuery; } Event(Map<String, String> eventData);  Event(String query);  Event(long timestamp, String query); long getTimeStamp(); String getEncodedQuery(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testBncoding_empty() throws Exception { Map<String, String> data = new HashMap<>(); Event event = new Event(data); assertEquals("", event.getEncodedQuery()); }