@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final ContinuousResource other = (ContinuousResource) obj;
        return Objects.equals(this.id, other.id)
                && Objects.equals(this.value, other.value);
    }
@Test
    public void testEquals() {
        ContinuousResource resource1 = Resources.continuous(D1, P1, Bandwidth.class)
                .resource(BW1.bps());
        ContinuousResource sameAsResource1 = Resources.continuous(D1, P1, Bandwidth.class)
                .resource(BW1.bps());

        new EqualsTester()
                .addEqualityGroup(resource1, sameAsResource1)
                .testEquals();
    }