### Question:
FileConsumer implements LocationConsumer { @Override public void consume(Map<String, Set<File>> locationFiles) { for (Map.Entry<String, Set<File>> entry : locationFiles.entrySet()) { String location = entry.getKey(); Context localContext = context.getLocalContext(location); getFileConsumerExecutor(localContext).execute(entry.getValue()); context.addLinks(localContext.getLinks()); } } FileConsumer(Map<String, ThrowingBiConsumer<File, Context>> consumers, Context context, String consumerName); @Override void consume(Map<String, Set<File>> locationFiles);  }### Answer:
@Test public void consume() { fileConsumer.consume(locationFiles); assertEquals(2, context.getLinks().count()); assertTrue(context.getLinks().anyMatch(link -> link.getCaller().getActor().equals("caller_location1"))); assertTrue(context.getLinks().anyMatch(link -> link.getCaller().getActor().equals("caller_location2"))); }