@Test
public void testWrap() {

  String source = "This is a sample option description to test static method wrap in "
      + "EndpointsToolAction.java";
  List<String> lines = EndpointsToolAction.wrap(source, 20, 2);
  assertEquals(5, lines.size());
  assertEquals("  This is a sample", lines.get(0));
  assertEquals("  option description", lines.get(1));
  assertEquals("  to test static", lines.get(2));
  assertEquals("  method wrap in", lines.get(3));
  // No wrap if word length is larger than maxWidth
  assertEquals("  EndpointsToolAction.java", lines.get(4));
}