### Question:
LoremIpsumField extends Field { @Override public String getString(final FieldCase c) { int size = c.getSize(); if (size == FieldCase.JUST_ABOVE_MAX) { size++; } else if (size == FieldCase.JUST_BELOW_MIN) { size--; } if (size <= 0) { return ""; } int loremLength = loremIpsum.length(); if (loremLength < size) { int multiplier = size / loremLength; int remainder = size % loremLength; StrBuilder sb = new StrBuilder(multiplier * size + remainder); for (int i = 0; i < multiplier; ++i) { sb.append(loremIpsum); } sb.append(loremIpsum.substring(0, remainder)); return sb.toString(); } return loremIpsum.substring(0, size); } LoremIpsumField(final MathRandom random, final Element element, final String characterSetId); @Override int getMaxLength(); @Override Range getRange(); @Override void setRange(final Range range); @Override String getString(final FieldCase c);  }### Answer:
@Test public void testMinimum() { String value = field.getString(new FieldCase(1)); assertEquals(value, "L"); }
@Test public void testMaximum() { String value = field.getString(new FieldCase(100)); assertEquals(value, loremIpsum.substring(0, 100)); }
@Test public void testVeryLongOne() { String value = field.getString(new FieldCase(10000)); assertEquals(value.length(), 10000); }