### Question:
SyntaxErrorException extends RuntimeException { public String getFile() { return file; } SyntaxErrorException(String file, List<SyntaxError> errors); String getFile(); List<SyntaxError> getErrors();  }### Answer:
@Test void getFile() { SyntaxErrorException exception = new SyntaxErrorException("foo", new ArrayList<>()); assertThat(exception.getFile()).isEqualTo("foo"); }