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