### Question:
ConvertList { public List<Integer> convert(List<int[]> list) { List<Integer> result = new ArrayList<>(); for (int[] array : list) { for (int element : array) { result.add(element); } } return result; }  List<Integer> toList(int[][] array); int[][] toArray(List<Integer> list, int rows); List<Integer> convert(List<int[]> list);  }### Answer:
@Test public void convertListOfArraysToList() { List<int[]> list = new ArrayList<>(); list.add(new int[]{1, 2}); list.add(new int[]{3, 4, 5, 6}); ConvertList testConvert = new ConvertList(); List<Integer> result = testConvert.convert(list); assertThat(result, is(new ArrayList<>(asList(1, 2, 3, 4, 5, 6)))); }