### Question:
CollectionHelper { public static <T> ArrayList<T> getArrayListOf( final Class<T> clazz, final Collection<?> collection ) { return getCollectionOf(clazz, collection, new ArrayList<>()); } private  CollectionHelper(); static Collection<T> getCollectionOf(
            final Class<T> clazz,
            final Collection<?> collection
    ); static ArrayList<T> getArrayListOf(
            final Class<T> clazz,
            final Collection<?> collection
    ); static HashSet<T> getHashSetOf(
            final Class<T> clazz,
            final Collection<?> collection
    ); static U getCollectionOf(
            final Class<T> clazz,
            final Collection<?> collection,
            final U resultCollection
    );  }### Answer:
@Test public void testGetList() { List<String> casted = CollectionHelper.getArrayListOf( String.class, OBJ_COLLECTION_OF_STRINGS ); Assert.assertEquals(casted.size(), EXPECTED_SIZE); }