public static <C> Collection<Data> objectToDataCollection(Collection<C> collection,
                                                              SerializationService serializationService) {
        List<Data> dataCollection = new ArrayList<>(collection.size());
        objectToDataCollection(collection, dataCollection, serializationService, null);
        return dataCollection;
    }
@Test
    public void testObjectToDataCollection_size() {
        SerializationService serializationService = new DefaultSerializationServiceBuilder().build();
        Collection<Object> list = new ArrayList<>();
        list.add(1);
        list.add("foo");

        Collection<Data> dataCollection = objectToDataCollection(list, serializationService);

        assertEquals(list.size(), dataCollection.size());
    }