@Test
public void convertSpeed() {

    Convert.metric = false;
    assertEquals("0.0 mph", Convert.speed(0.0));
    assertEquals("9.9 mph", Convert.speed(9.9 * Convert.MPH));
    assertEquals("22 mph", Convert.speed(10.0));
    assertEquals("224 mph", Convert.speed(100.0));
    assertEquals("224 mph", Convert.speed(100.0, 0, true));
    assertEquals("224", Convert.speed(100.0, 0, false));
    assertEquals("", Convert.speed(Double.NaN));
    assertEquals("Infinity", Convert.speed(Double.POSITIVE_INFINITY));
}