### Question:
CustomerTransactionParametersBuilder { public CustomerTransactionParameters build() { return new CustomerTransactionParameters(this.petCounts, this.averageTransactionTriggerTime, this.averagePurchaseTriggerTime); } CustomerTransactionParametersBuilder(); void addPet(PetSpecies species); void setAverageTransactionTriggerTime(
			double averageTransactionTriggerTime); void setAveragePurchaseTriggerTime(double averagePurchaseTriggerTime); CustomerTransactionParameters build();  }### Answer:
@Test public void testBuild() throws Exception { CustomerTransactionParametersBuilder builder = new CustomerTransactionParametersBuilder(); builder.addPet(PetSpecies.DOG); builder.addPet(PetSpecies.DOG); builder.addPet(PetSpecies.DOG); builder.setAveragePurchaseTriggerTime(1.0); builder.setAverageTransactionTriggerTime(2.0); CustomerTransactionParameters transParams = builder.build(); assertTrue(transParams.countPetsBySpecies(PetSpecies.DOG) == 3); assertTrue(transParams.countPetsBySpecies(PetSpecies.CAT) == 0); assertTrue(transParams.getAveragePurchaseTriggerTime() == 1.0); assertTrue(transParams.getAverageTransactionTriggerTime() == 2.0); }