@Override
    public boolean isSubTypeOf(Class<?> ancestor) {
        checkNotNull(ancestor);

        return id.isSubTypeOf(ancestor);
    }
@Test
    public void testSubTypeOfObject() {
        DiscreteResource discrete = Resources.discrete(D1, P1, VLAN1).resource();

        assertThat(discrete.isSubTypeOf(Object.class), is(true));
    }