@Test
public void testExpandWhenOneNestedListAndTwoRows() {

    List schema = Arrays.asList(new Object(), Arrays.asList(new Object(), new Object()), new Object(), new Object());
    List<List> list = Arrays.asList(
            Arrays.asList(11, Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3, 4)), 12, 13),
            Arrays.asList(20, Arrays.asList(Arrays.asList(21, 22), Arrays.asList(23, 24), Arrays.asList(25, 26)), 41, 42)
    );
    List<List> expected = Arrays.asList(
            Arrays.asList(11, 1, 2, 12, 13),
            Arrays.asList(11, 3, 4, 12, 13),
            Arrays.asList(20, 21, 22, 41, 42),
            Arrays.asList(20, 23, 24, 41, 42),
            Arrays.asList(20, 25, 26, 41, 42)
    );
    List<List> actual = PartnerResultToCrtesianTable.expand(list, schema);
    assertEquals(actual, expected);
}