public static MastershipTerm of(NodeId master, long term) {
        return new MastershipTerm(master, term);
    }
@Test
    public void testEquality() {
        new EqualsTester().addEqualityGroup(MastershipTerm.of(N1, 0), TERM1)
        .addEqualityGroup(TERM2, TERM3)
        .addEqualityGroup(TERM4)
        .testEquals();
    }