public final void testRun() {
String original =
Strings.generateRandomString(random.nextInt(10000) + 25, random);
ReplaceTokenAction action =
new ReplaceTokenAction(null, 0, 10, "helloWorld!");
assertNotNull(action);
Reader input = new StringReader(original);
StringWriter output = new StringWriter();
action.run(input, output);
assertEquals("helloWorld!" + original.substring(10), output.toString());
action = new ReplaceTokenAction(null, 10, 20, "helloWorld!");
input = new StringReader(original);
output = new StringWriter();
action.run(input, output);
assertEquals(
original.substring(0, 10) + "helloWorld!" + original.substring(20),
output.toString());