Tests that the NetworkAgent is able to get a serialized certificate for a given request.