@Test
public void testValueAt() {
VirtualFile file = new LightVirtualFile("file.txt");
// Add violations
Violation violation1 = new Violation();
violation1.setSeverity("Major");
violation1.setRuleName("A rule");
violation1.setLine(null);
violation1.setMessage("This violation has no line associated with it");
Violation violation2 = new Violation();
violation2.setSeverity("Minor");
violation2.setRuleName("Another rule");
violation2.setLine(10);
violation2.setMessage("This violation has a line associated with it");
List<Violation> violations = new ArrayList<Violation>();
violations.add(violation1);
violations.add(violation2);