CodecUtils { public static int[] convertToIntArray(List<Integer> integerList) { int[] integerArray = new int[integerList.size()]; for(int i=0; i<integerList.size(); i++){ integerArray[i] = integerList.get(i); } return integerArray; }  static String getMmtfEntryUrl(String pdbId, boolean https, boolean reduced); static String getMmtfBaseUrl(boolean https, boolean reduced); static int[] convertToIntArray(List<Integer> integerList); static final int MAX_CHARS_PER_CHAIN_ENTRY; }
@Test public void testConvertToIntArray() { int[] testIntegerArray = {1,4,3,2,6,7,2,200}; List<Integer> integerList = new ArrayList<>(); for (int inputInt : testIntegerArray) { integerList.add(inputInt); } int[] integerArray = CodecUtils.convertToIntArray(integerList); assertArrayEquals(testIntegerArray, integerArray); }