DefaultFileSystem fs = new DefaultFileSystem();
DefaultInputFile inputFile = new DefaultInputFile("foo", "src/Foo.xoo").setLanguage(Xoo.KEY).setLines(10);
fs.add(inputFile);
SensorContext context = mock(SensorContext.class);
final SensorStorage sensorStorage = mock(SensorStorage.class);
Settings settings = new Settings();
settings.setProperty(OneIssuePerLineSensor.FORCE_SEVERITY_PROPERTY, "MINOR");
when(context.settings()).thenReturn(settings);
when(context.fileSystem()).thenReturn(fs);
when(context.newIssue()).thenAnswer(new Answer<Issue>() {