@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        DefaultRequest that = (DefaultRequest) o;
        return Objects.equals(key, that.key) && Objects.equals(RID, that.RID);
    }
@Test
    public void testEquals() {
        Request request = new DefaultRequest(rid, name);
        Assert.assertTrue(request.equals(request));
        Assert.assertFalse(request == null);
    }