public boolean isSatisfy(DistributionSpec spec) {
        if (spec.type.equals(DistributionType.ANY)) {
            return true;
        }

        return spec instanceof RoundRobinDistributionSpec;
    }
@Test
    void isSatisfy() {
        DistributionSpec rr = new RoundRobinDistributionSpec();
        assertTrue(rr.isSatisfy(AnyDistributionSpec.INSTANCE));
        assertTrue(rr.isSatisfy(new RoundRobinDistributionSpec()));
        assertFalse(rr.isSatisfy(new ReplicatedDistributionSpec()));
    }