{
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();
assertEquals( bigIntegerJson(), json.toString() );
}