@Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }

        if (obj instanceof Bandwidth) {
            return this.compareTo((Bandwidth) obj) == 0;
        }

        return false;
    }
@Test
    public void testEquals() {
        Bandwidth expected = Bandwidth.kbps(one);
        assertFalse(small.equals(big));
        assertTrue(small.equals(expected));
        assertTrue(small.equals(small));
        assertFalse(small.equals(1000));
    }