UtilizationModelDynamic extends UtilizationModelAbstract { public final UtilizationModelDynamic setMaxResourceUtilization(final double maxResourceUsagePercentage) { validateUtilizationField("maxResourceUtilization", maxResourceUsagePercentage, ALMOST_ZERO); this.maxResourceUtilization = maxResourceUsagePercentage; return this; } UtilizationModelDynamic();  UtilizationModelDynamic(final Unit unit);  UtilizationModelDynamic(final double initialUtilizationPercent);  UtilizationModelDynamic(final Unit unit, final double initialUtilization);  UtilizationModelDynamic(final Unit unit, final double initialUtilization, final double maxResourceUtilization); protected  UtilizationModelDynamic(final UtilizationModelDynamic source);  UtilizationModelDynamic(final UtilizationModelDynamic source, final double initialUtilization); double getTimeSpan(); double getMaxResourceUtilization(); final UtilizationModelDynamic setMaxResourceUtilization(final double maxResourceUsagePercentage); final UtilizationModelDynamic setUtilizationUpdateFunction(final Function<UtilizationModelDynamic, Double> utilizationUpdateFunction);  }
@Test() public void testSetMaxResourceUsagePercentageWhenNegativeValue() { final UtilizationModelDynamic instance = new UtilizationModelDynamic(); Assertions.assertAll( () -> Assertions.assertThrows(IllegalArgumentException.class, () -> instance.setMaxResourceUtilization(-1)), () -> Assertions.assertThrows(IllegalArgumentException.class, () -> instance.setMaxResourceUtilization(-0.1)) ); }