@Override
  public boolean isInfinite() {
    return this.equals(INFINITY)
        || (this.cpu == Double.POSITIVE_INFINITY)
        || (this.cpuRate == Double.POSITIVE_INFINITY);
  }
@Test
  public void testDefaultConstructorIsInfinite() {
    BeamCostModel cost = BeamCostModel.FACTORY.makeCost(1, 1, 1);
    Assert.assertTrue(cost.isInfinite());
  }