### Question:
AclUtils { public static String[] getAddreeStrArray(String netaddress, String four) { String[] fourStrArray = StringUtils.split(four.substring(1, four.length() - 1), ","); String address = netaddress.substring(0, netaddress.indexOf("{")); String[] addreeStrArray = new String[fourStrArray.length]; for (int i = 0; i < fourStrArray.length; i++) { addreeStrArray[i] = address + fourStrArray[i]; } return addreeStrArray; }  static byte[] combineRequestContent(RemotingCommand request, SortedMap<String, String> fieldsMap); static byte[] combineBytes(byte[] b1, byte[] b2); static String calSignature(byte[] data, String secretKey); static void verify(String netaddress, int index); static String[] getAddreeStrArray(String netaddress, String four); static boolean isScope(String num, int index); static boolean isScope(String[] num, int index); static boolean isScope(String num); static boolean isScope(int num); static boolean isAsterisk(String asterisk); static boolean isColon(String colon); static boolean isMinus(String minus); static T getYamlDataObject(String path, Class<T> clazz); static RPCHook getAclRPCHook(String fileName);  }### Answer:
@Test public void getAddreeStrArray() { String address = "1.1.1.{1,2,3,4}"; String[] addressArray = AclUtils.getAddreeStrArray(address, "{1,2,3,4}"); List<String> newAddressList = new ArrayList<>(); for (String a : addressArray) { newAddressList.add(a); } List<String> addressList = new ArrayList<>(); addressList.add("1.1.1.1"); addressList.add("1.1.1.2"); addressList.add("1.1.1.3"); addressList.add("1.1.1.4"); Assert.assertEquals(newAddressList, addressList); }