@Test
public void sizeOfContentCannotBeDetermined() throws Exception {

    Class<Collection> type = Collection.class;
    ParameterizedType genericType = ParameterizedTypeImpl.newParameterizedType(Collection.class, OutputItem.class);
    assertEquals(-1, collectionMultipartFormDataMessageBodyWriter.getSize(newArrayList(), type, genericType, new Annotation[0], TEXT_PLAIN_TYPE));
}