@Test
public void testExpandWhenOneNestedList() {

    List schema = Arrays.asList(new Object(), Arrays.asList(new Object(), new Object(), new Object()), new Object(), new Object());
    List<List> list = Arrays.asList(
            (List) Arrays.asList("1", Arrays.asList("21", "22", "23"), "3", "4")
    );
    List<List> expected = Arrays.asList(
            Arrays.asList("1", "21", "3", "4"),
            Arrays.asList("1", "22", "3", "4"),
            Arrays.asList("1", "23", "3", "4")
    );
    List<List> actual = PartnerResultToCrtesianTable.expand(list, schema);
    assertEquals(actual, expected);
}