        assert!(MaxTokens::new(1024, &ENGINE_DEFINITION).is_some());
        assert!(MaxTokens::new(1025, &ENGINE_DEFINITION).is_none());
    }

    #[test]
    fn test_max_tokens_inner() {
        let max_tokens = MaxTokens::new(1, &ENGINE_DEFINITION).unwrap();
        assert_eq!(max_tokens.inner(), 1);