ImageTable { static Iterable<String> extractHeaders(List<String> lines) { String headerLine = Iterables.getFirst(lines, ""); checkArgument(!headerLine.isEmpty(), "Found an empty header line"); return COMMA.split(headerLine); } ImageTable(Table<String, String, String> table); static ImageTable fromCsvResource(String resource); ImageTableQuery query(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testExtractHeaderLine() throws Exception { Iterable<String> headers = ImageTable.extractHeaders(ImmutableList.of("a,b,c", "1,2,3")); assertThat(headers).containsAll(ImmutableList.of("a", "b", "c")); }