public function testIsEngineSet()
{
Math::setEngine(null);
$this->assertNull(Math::getEngine());
$engine = $this->getMock('Bitpay\\Math\\EngineInterface');
Math::setEngine($engine);
$this->assertInstanceOf('Bitpay\\Math\\EngineInterface', Math::getEngine());
}