def METHOD_NAME(self):
    reg = RegressionPipe()
    for r in ['mean_squared_error', 'mean_absolute_error', 'explained_variance']:
        self.assertTrue(r in reg.optimization.metrics)
    self.assertEqual(reg.optimization.best_config_metric, 'mean_squared_error')
    self.assertIsInstance(reg.elements[-1], RegressorSwitch)