### Question:
UDPEmitter extends Emitter { @Override public boolean sendSegment(Segment segment) { if (logger.isDebugEnabled()) { logger.debug(segment.prettySerialize()); } return sendData((PROTOCOL_HEADER + PROTOCOL_DELIMITER + segment.serialize()).getBytes(StandardCharsets.UTF_8), segment); } UDPEmitter();  UDPEmitter(DaemonConfiguration config); String getUDPAddress(); @Override boolean sendSegment(Segment segment); @Override boolean sendSubsegment(Subsegment subsegment);  }### Answer:
@Test void sendingSegmentShouldNotThrowExceptions() throws SocketException { DaemonConfiguration config = getDaemonConfiguration("__udpemittertest_unresolvable__:1234"); UDPEmitter emitter = new UDPEmitter(config); boolean success = emitter.sendSegment(new DummySegment(getGlobalRecorder())); assertThat(success).isFalse(); }