### Question:
Battery extends AbstractCustomer implements CustomerModelAccessor { public double getCapacityKWh () { return capacityKWh; } Battery();  Battery(String name); @Override void initialize(); @Override CustomerInfo getCustomerInfo(); @Override void step(); @Override String getName(); @Override void setName(String name); @ConfigurableValue(valueType = "Double", dump = false, description = "size of battery in kWh") @StateChange void setCapacityKWh(double value); double getCapacityKWh(); @ConfigurableValue(valueType = "Double", dump = false, description = "maximum charge rate") @StateChange void setMaxChargeKW(double value); double getMaxChargeKW(); @ConfigurableValue(valueType = "Double", dump = false, description = "Maximum discharge rate") void setMaxDischargeKW(double value); double getMaxDischargeKW(); @ConfigurableValue(valueType = "Double", dump = false, description = "ratio of charge energy to battery energy") @StateChange void setChargeEfficiency(double value); double getChargeEfficiency(); @ConfigurableValue(valueType = "Double", dump = false, description = "hourly charge lost as proportion of capacity") void setSelfDischargeRate(double value); double getSelfDischargeRate(); @Override double getBrokerSwitchFactor(boolean isSuperseding); @Override double getTariffChoiceSample(); @Override double getInertiaSample(); @Override void evaluateTariffs(List<Tariff> tariffs); @Override double getShiftingInconvenienceFactor(Tariff tariff); @Override CapacityProfile getCapacityProfile(Tariff tariff);  }### Answer:
@Test public void testCreate () { Battery battery = new Battery("test"); assertNotNull(battery, "constructed"); assertEquals(50.0, battery.getCapacityKWh(), 1e-6, "correct capacity"); }