/** @throws SocketException */
 @Before
 public void setUp() throws SocketException {
   listener = context.mock(UDPListener.class);
   final UDPFactory udpFactory = new UDPFactory(PORT);
   client = udpFactory.buildClient();
   server = udpFactory.buildServer();
   server.add(listener);
   server.setDaemon(true);
   server.start();
 }
 @After
 public void stopServer() {
   server.interrupt();
 }