### Question:
LoremIpsumGenerator { public String generateLoremIpsum(final int length) { if (loremLength < length) { int multiplier = length / loremLength; int remainder = length % loremLength; StrBuilder sb = new StrBuilder(multiplier * length + remainder); for (int i = 0; i < multiplier; ++i) { sb.append(loremIpsum); } sb.append(loremIpsum.substring(0, remainder)); return sb.toString(); } return loremIpsum.substring(0, length); } @Inject  LoremIpsumGenerator(@LoremIpsum final String loremIpsum); String generateLoremIpsum(final int length);  }### Answer:
@Test public void testMinimum() { String result = generator.generateLoremIpsum(1); assertEquals(result, "L"); }
@Test public void testMaximum() { String result = generator.generateLoremIpsum(loremIpsum.length()); assertEquals(result, loremIpsum); }
@Test public void testMultiple() { String result = generator.generateLoremIpsum(10000); assertEquals(result.length(), 10000); }