@Test
public void doesNotLoadSourceLocationNone() {

    ValidationEvent event = ValidationEvent.builder()
            .id("foo")
            .severity(Severity.ERROR)
            .message("This is the message")
            .sourceLocation(SourceLocation.NONE)
            .build();
    String format = new ContextualValidationEventFormatter().format(event);
    // Normalize line endings for Windows.
    format = format.replace("\r\n", "\n");
    assertThat(format, equalTo(
            "ERROR: - (foo)"
            + "\n     = This is the message"
            + "\n"));
}