### Question:
SourceFile { public List<String> getLines() { try { return CharSource.wrap(sourceBuilder).readLines(); } catch (IOException e) { throw new AssertionError("IOException not possible, as the string is in-memory", e); } } SourceFile(String path, CharSequence source); static SourceFile create(JavaFileObject fileObject); String getPath(); List<String> getLines(); String getSourceText(); CharSequence getAsSequence(); void setSourceText(CharSequence source); String getFragmentByChars(int startPosition, int endPosition); String getFragmentByLines(int startLine, int endLine); void replaceLines(List<String> lines); void replaceLines(int startLine, int endLine, List<String> replacementLines); void replaceChars(int startPosition, int endPosition, String replacement);  }### Answer:
@Test public void getLines() { List<String> lines = sourceFile.getLines(); assertThat(lines).hasSize(8); assertThat(lines.get(0)) .isEqualTo(" assertThat(lines.get(7)).isEqualTo(" }