### Question:
QrDataFactory { public QrData.Builder newBuilder() { return new QrData.Builder() .algorithm(defaultAlgorithm) .digits(defaultDigits) .period(defaultTimePeriod); } QrDataFactory(HashingAlgorithm defaultAlgorithm, int defaultDigits, int defaultTimePeriod); QrData.Builder newBuilder();  }### Answer:
@Test public void testFactorySetsDefaultsOnBuilder() { QrDataFactory qrDataFactory = new QrDataFactory(HashingAlgorithm.SHA256, 6, 30); QrData data = qrDataFactory.newBuilder().build(); assertEquals(HashingAlgorithm.SHA256.getFriendlyName(), data.getAlgorithm()); assertEquals(6, data.getDigits()); assertEquals(30, data.getPeriod()); }