ConnectionTypeEncoderDecoder implements Encoder.Text<ConnectionType>,
                                                     Decoder.Text<ConnectionType> { @Override public boolean willDecode(String str) { return !Strings.isNullOrEmpty(str); }  @Override void init(EndpointConfig config); @Override void destroy(); @Override ConnectionType decode(String connectionTypeStr); @Override boolean willDecode(String str); @Override String encode(ConnectionType connectionType);  }
@Test public void testWillDecode() { assertFalse(underTest.willDecode(null)); assertFalse(underTest.willDecode("")); assertTrue(underTest.willDecode("PUBLISHER")); }