add toString

Change-Id: I14b07972b1f0aec1a7cc21ff053aa30a25af8ca1
diff --git a/core/api/src/main/java/org/onlab/onos/mastership/MastershipTerm.java b/core/api/src/main/java/org/onlab/onos/mastership/MastershipTerm.java
index 640180d..216895c 100644
--- a/core/api/src/main/java/org/onlab/onos/mastership/MastershipTerm.java
+++ b/core/api/src/main/java/org/onlab/onos/mastership/MastershipTerm.java
@@ -4,6 +4,8 @@
 
 import org.onlab.onos.cluster.NodeId;
 
+import com.google.common.base.MoreObjects;
+
 public final class MastershipTerm {
 
     private final NodeId master;
@@ -48,4 +50,12 @@
         }
         return false;
     }
+
+    @Override
+    public String toString() {
+        return MoreObjects.toStringHelper(getClass())
+                .add("master", this.master)
+                .add("termNumber", this.termNumber)
+                .toString();
+    }
 }