@Test
public void should_transformTable() {

    List<List<String>> data = newArrayList();
    String[] rest = {"1", "2", "3"};
    data.add(asList("A", "b", rest));
    data.add(asList("c", "d", rest));
    List<List<String>> expected = newArrayList(
            (List<String>) newArrayList("A", "c"),
            newArrayList("b", "d"),
            newArrayList("1", "1"),
            newArrayList("2", "2"),
            newArrayList("3", "3"));
    assertThat(CsvToTable.transform(data), equalTo(expected));
}