### Question:
WPSStreamingServer implements StreamingServer { @Override public String getURL() { return myUrl.toString(); } WPSStreamingServer(ComponentsFactory factory); @Override List<String> getAvailableStreams(); @Override String getURL(); @Override UUID start(String stream, StreamHandler handler, ExecutorService executor, DataFilter filter, Geometry spatialFilter); @Override UUID start(String stream, StreamHandler handler, ExecutorService executor); @Override synchronized void stop(UUID streamId);  }### Answer:
@Test public void testGetURL() throws MalformedURLException { EasyMockSupport support = new EasyMockSupport(); Subscriber subscriber = support.createNiceMock(Subscriber.class); Unsubscriber unsubscriber = support.createNiceMock(Unsubscriber.class); ComponentsFactory factory = createFactory(support, subscriber, unsubscriber); support.replayAll(); WPSStreamingServer server = new WPSStreamingServer(factory); assertEquals(ourWpsUrl, server.getURL().toString()); support.verifyAll(); }