@Test
public void testExpectedOutputOneIssue() {
String nl = System.getProperty("line.separator");
String name = "foo/bar.js";
Issue issue = new IssueBuilder(name, 1, 2, "no clucking").evidence("cluck()").build();
JSLintResult result = new JSLintResult.ResultBuilder(name).addIssue(issue).build();
StringBuilder sb = new StringBuilder(name);
sb.append(":1:2: no clucking").append(nl);
sb.append("cluck()").append(nl);
sb.append(" ^").append(nl);
assertThat(rf.format(result), is(sb.toString()));