JsonNetSerializer Serialize method tests.