PurityContextFile { @NotNull @VisibleForTesting static PurityContext fromLines(@NotNull List<String> qcLines, @NotNull List<String> fitLines) { final PurpleQC qc = PurpleQCFile.fromLines(qcLines); return fromLine(fitLines.get(1)).qc(qc).build(); }  @NotNull static PurityContext read(@NotNull final String basePath, @NotNull final String sample); @NotNull static PurityContext readWithQC(@NotNull final String qcFilePath, @NotNull String filePath); static void write(@NotNull final String basePath, @NotNull final String sample, @NotNull final PurityContext context);  }
@Test public void testCompatibilityWith2_47() throws IOException { final List<String> qcLines = Resources.readLines(Resources.getResource("purple/v2-47.purple.qc"), Charset.defaultCharset()); final List<String> fitLines = Resources.readLines(Resources.getResource("purple/v2-47.purple.purity"), Charset.defaultCharset()); PurityContextFile.fromLines(qcLines, fitLines); }