### Question:
URLConfigSource extends AbstractConfigSource { @Override protected void visit(final ConfigLocationVisitor visitor) throws IOException { location.accept(visitor); } URLConfigSource(final URL url);   URLConfigSource(final URLLocation location); @Override Reader getReader(); @Override VisitableLocation getLocation();  }### Answer:
@Test public void testVisitWithVisitableLocation() throws IOException { final URLLocation mockLocation = new URLLocation(url); mockVisitor.visit(mockLocation); EasyMockUnitils.replay(); new URLConfigSource(mockLocation).visit(mockVisitor); }