@Test
public void testExpandWhenTwoNestedListAndOneRow() {

    List schema = Arrays.asList(new Object(), Arrays.asList(new Object(), new Object()), new Object(), Arrays.asList(new Object(), new Object()));
    List<List> list = Arrays.asList(
            (List) Arrays.asList(11, Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3, 4)), 12, Arrays.asList(Arrays.asList(5, 6), Arrays.asList(7, 8)))
    );
    List<List> expected = Arrays.asList(
            Arrays.asList(11, 1, 2, 12, 5, 6),
            Arrays.asList(11, 3, 4, 12, 5, 6),
            Arrays.asList(11, 1, 2, 12, 7, 8),
            Arrays.asList(11, 3, 4, 12, 7, 8)
    );
    List<List> actual = PartnerResultToCrtesianTable.expand(list, schema);
    assertEquals(expected.size(), actual.size());
    for (List l : expected) {
        assertTrue(actual.contains(l));
    }
}