@Override
    public void start() {
        setOutputStream(datagramSocketOutputStream(host, port));
        super.start();
    }
@Test
    void testSendMessage() throws Exception {
        try (DatagramSocket datagramSocket = new DatagramSocket(); UdpServer udpServer = new UdpServer(datagramSocket, 1)
) {
            Future<List<String>> receivedMessage = udpServer.receive();
            OutputStreamAppender<ILoggingEvent> udpStreamAppender = new DropwizardUdpSocketAppender<>("localhost", datagramSocket.getLocalPort());
            udpStreamAppender.setContext(Mockito.mock(Context.class));
            udpStreamAppender.start();
            udpStreamAppender.getOutputStream().write("Test message".getBytes(UTF_8));

            assertThat(receivedMessage.get(5, TimeUnit.SECONDS))
                .singleElement()
                .isEqualTo("Test message");
            udpStreamAppender.stop();
        }
    }