### Question:
Utils { public static List<String> removeAddressPort(List<String> stringList) { List<String> adresNoPort = new ArrayList<>(); for (String s : stringList) { int index = s.indexOf(":"); if (index > -1) { adresNoPort.add(s.substring(0, index)); continue; } adresNoPort.add(s); } return adresNoPort; } private  Utils(); static T newTypeInstance(Class<T> clazz); @SuppressWarnings("unchecked") static T newTypeInstance(String className, Class<T> returnClass); static String quote(String identifier); static String singleQuote(String identifier); static String batchQueryGenerator(List<String> statements); static Tuple2<String[], Object[]> prepareTuple4CqlDriver(Tuple2<Cells, Cells> tuple); @SuppressWarnings("unchecked") static Method findSetter(String propertyName, Class entityClass, Class valueType); static boolean setFieldWithReflection(Object object, String fieldName, Object fieldValue); @SuppressWarnings("unchecked") static Method findGetter(String propertyName, Class entityClass); static InetAddress inetAddressFromLocation(String location); static Field[] getAllFields(Class clazz); static List<String> removeAddressPort(List<String> stringList); static String splitListByComma(List<String> hosts); static IExtractor<T, S> getExtractorInstance(S config); static Object castNumberType(Object object, Class clazz); static Object castingUtil(String value, Class classCasting); static W initConfig(S config, W deepJobConfig); static T cloneObjectWithParents(T t); static ExecutorService newBlockingFixedThreadPoolExecutor(int nThreads, int queueSize);  }### Answer:
@Test public void testRemoveAddressPort() throws Exception { List<String> expected = new ArrayList(); expected.add("stratio1"); expected.add("stratio2"); expected.add("stratio3"); expected.add("stratio4"); List<String> test = new ArrayList(); test.add("stratio1:2010"); test.add("stratio2:2030"); test.add("stratio3:2040"); test.add("stratio4"); List<String> stringList = removeAddressPort(test); assertEquals(stringList, expected); }