// Path: src/treecmp/common/TreeCmpException.java
// public class TreeCmpException extends Exception {
// 
//   private String errMsg;
// //----------------------------------------------
// // Default constructor - initializes instance variable to unknown
//   public TreeCmpException()
//   {
//     super();             // call superclass constructor
//     errMsg = "unknown";
//   }
// 
// //-----------------------------------------------
// // Constructor receives some kind of message that is saved in an instance variable.
//   public TreeCmpException(String errMsg)
//   {
//     super(errMsg);     // call super class constructor
//     this.errMsg = errMsg;  // save message
//   }
// 
// //------------------------------------------------
// // public method, callable by exception catcher. It returns the error message.
//   public String getError()
//   {
//     return errMsg;
//   }
// }


import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import pal.tree.Tree;
import treecmp.common.TreeCmpException;
import treecmp.metric.Metric;
import treecmp.test.util.TreeCreator;
import static org.junit.jupiter.api.Assertions.*;
package treecmp.spr;



class UsprHeuristicMPUMetricTest {

    @BeforeEach
    void setUp() {
    }

    @AfterEach
    void tearDown() {
    }

    @Test
// Path: src/treecmp/common/TreeCmpException.java
// public class TreeCmpException extends Exception {
// 
//   private String errMsg;
// //----------------------------------------------
// // Default constructor - initializes instance variable to unknown
//   public TreeCmpException()
//   {
//     super();             // call superclass constructor
//     errMsg = "unknown";
//   }
// 
// //-----------------------------------------------
// // Constructor receives some kind of message that is saved in an instance variable.
//   public TreeCmpException(String errMsg)
//   {
//     super(errMsg);     // call super class constructor
//     this.errMsg = errMsg;  // save message
//   }
// 
// //------------------------------------------------
// // public method, callable by exception catcher. It returns the error message.
//   public String getError()
//   {
//     return errMsg;
//   }
// }


// Path: test/treecmp/spr/UsprHeuristicMPUMetricTest.java
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import pal.tree.Tree;
import treecmp.common.TreeCmpException;
import treecmp.metric.Metric;
import treecmp.test.util.TreeCreator;
import static org.junit.jupiter.api.Assertions.*;

package treecmp.spr;



class UsprHeuristicMPUMetricTest {

    @BeforeEach
    void setUp() {
    }

    @AfterEach
    void tearDown() {
    }

    @Test
    void testGetMetricTwoMarsupialsTreesWithSPR_1_distance() throws TreeCmpException {