### Question:
CpGenco extends Broker { @ConfigurableValue(valueType = "Double", description = "minimum leadtime for first commitment, in hours") @StateChange public CpGenco withMinQuantity (double qty) { this.minQuantity = qty; return this; } CpGenco(String username); void init(BrokerProxy proxy, int seedId,
                    RandomSeedRepo randomSeedRepo,
                    TimeslotRepo timeslotRepo); void generateOrders(Instant now, List<Timeslot> openSlots); void saveBootstrapState(ServerConfiguration serverConfig); List<String> getCoefficients(); double[] getCoefficientArray(); @ConfigurableValue(valueType = "List", bootstrapState = true, dump=false, description = "Coefficients for the specified function type") @StateChange CpGenco withCoefficients(List<String> coeff); double getPSigma(); @ConfigurableValue(valueType = "Double", dump=false, description = "Standard Deviation ratio for bid price") @StateChange CpGenco withPSigma(double var); double getQSigma(); @ConfigurableValue(valueType = "Double", dump=false, description = "Standard Deviation ratio for bid quantity") @StateChange CpGenco withQSigma(double var); double getRwaSigma(); @ConfigurableValue(valueType = "Double", dump=false, description = "Random-walk std dev ratio for quadratic coefficient") @StateChange CpGenco withRwaSigma(double var); double getRwaOffset(); @ConfigurableValue(valueType = "Double", dump=false, description = "Random-walk offset ratio for quadratic coefficient") @StateChange CpGenco withRwaOffset(double var); double getRwcSigma(); @ConfigurableValue(valueType = "Double", dump=false, description = "Random-walk std dev ratio for constant coefficient") @StateChange CpGenco withRwcSigma(double var); double getRwcOffset(); @ConfigurableValue(valueType = "Double", dump=false, description = "Random-walk offset ratio for constant coefficient") @StateChange CpGenco withRwcOffset(double var); double getPriceInterval(); @ConfigurableValue(valueType = "Double", description = "Nominal price interval between successive bids") @StateChange CpGenco withPriceInterval(double interval); double getMinQuantity(); @ConfigurableValue(valueType = "Double", description = "minimum leadtime for first commitment, in hours") @StateChange CpGenco withMinQuantity(double qty); double getKneeDemand(); @ConfigurableValue(valueType = "Double", description = "congestion demand threshold") @StateChange CpGenco withKneeDemand(double demand); double getKneeSlope(); @ConfigurableValue(valueType = "Double", description = "congestion demand slope multiplier") @StateChange CpGenco withKneeSlope(double mult);  }### Answer:
@Test public void testWithMinQuantity () { init(); assertEquals(120.0, genco.getMinQuantity(), 1e-6, "correct initial"); genco.withMinQuantity(150.0); assertEquals(150.0, genco.getMinQuantity(), 1e-6, "correct post"); }