@Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        } else if (obj instanceof BlockedNode) {
            BlockedNode other = (BlockedNode) obj;
            return nodeId.equals(other.nodeId)
                    && cause.equals(other.cause)
                    && endTimestamp == other.endTimestamp;
        } else {
            return false;
        }
    }
@Test
    void testEquals() {
        BlockedNode blockedNode1 = new BlockedNode("node", "cause", 1L);
        BlockedNode blockedNode2 = new BlockedNode("node", "cause", 1L);
        assertThat(blockedNode1).isEqualTo(blockedNode2);
    }