@Override
  public int getCanaryDistributionPolicy()
  {
    switch (_serviceProperties.getDistribution())
    {
      case STABLE: return 0;
      case CANARY: return 1;
      default: return -1;
    }
  }
@Test(dataProvider = "getCanaryDistributionPoliciesTestData")
  public void testGetCanaryDistributionPolicy(CanaryDistributionProvider.Distribution distribution, int expectedValue)
  {
    ServicePropertiesJmx servicePropertiesJmx = new ServicePropertiesJmx(
        new LoadBalancerStateItem<>(
            new ServiceProperties("Foo", "Bar", "/", Collections.singletonList("Random")),
            0,
            0,
            distribution
        )
    );
    Assert.assertEquals(servicePropertiesJmx.getCanaryDistributionPolicy(), expectedValue);
  }