ChatAlyticsEventDecoder implements Decoder.Text<ChatAlyticsEvent> { @Override public boolean willDecode(String str) { return !Strings.isNullOrEmpty(str); } ChatAlyticsEventDecoder(); @Override void init(EndpointConfig config); @Override ChatAlyticsEvent decode(String str); @Override boolean willDecode(String str); @Override void destroy();  }
@Test public void testWillDecode() { assertFalse(underTest.willDecode(null)); assertFalse(underTest.willDecode("")); assertTrue(underTest.willDecode("{}")); }