Code code = new Code(fileInfo.getFilePath(), fileInfo.getData());
CoverageAccumulator accumulator = new CoverageAccumulator();
final Instant instant = new Instant(System.currentTimeMillis());
FileInfo decorated =
new CoverageInstrumentingProcessor(new DecoratorStub(expected, code),
Collections.<String>emptySet(), accumulator, new Time() {
public Instant now() {
return instant;
}
}).process(fileInfo);
assertEquals(expected, decorated.getData());