You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ball_ball_toi.rs
    path of file: ./repos/parry/crates/parry3d/tests/geometry
    
    the code of the file until where you have to start completion: // Issue #35

use na::{self, Isometry3, Vector3};
use parry3d::math::Real;
use parry3d::query;
use parry3d::shape::Ball;

#[test]
fn test_ball_ball_toi() {
    let b = Ball::new(0.5);
    let m1 = Isometry3::identity();
 
    
fn test_ball_ball_toi() {
    let b = Ball::new(0.5);
    let m1 = Isometry3::identity();
    let m2 = Isometry3::translation(0.0, 10.0, 0.0);
    let vel1 = Vector3::new(0.0, 10.0, 0.0);
    let vel2 = Vector3::zeros();

    let cast = query::time_of_impact(&m1, &vel1, &b, &m2, &vel2, &b, Real::MAX, true).unwrap();

    assert_eq!(cast.unwrap().toi, 0.9);
}