Use mocked udp sockets in integration tests to increase reliability
It would be a good idea to use mocked UDP sockets when running the integration tests, excluding the discovery tests. Since almost all integration tests shouldn't have to deal with unreliable discovery messages, which might be dropped kinda randomly for no apparent reason, connecting them via a mocked buffer would increase their reliability immensely. This could be achieved e.g. by putting the UDP socket behind an interface, or mocking parts of them using mockito.
Do this for all integration tests except discovery tests to ensure that the entire discovery chain remains tested, but not in every single test case.
Edited by Lukas Deichmann