@Test
public void givenCollectionTypeWithBigIntegerAndNullElementWhenSerializingExpectCorrectJsonOutput()
throws Exception
{
ValueType collectedType = new ValueType( BigInteger.class );
CollectionType collectionType = new CollectionType( Collection.class, collectedType );
Collection<BigInteger> value = bigIntegerCollection();
JSONObjectSerializer serializer = new JSONObjectSerializer();
serializer.serialize( value, collectionType );
Object json = serializer.getRoot();