@Test
@SuppressWarnings("unchecked")
public void testHelp() throws Exception {

  String[] args = { "--help" };
  CommandLine.call(offrampConsoleSpied, args);
  String[] lines = outBuffer.toString().split("\n");
  String defaultOffsetHelp = "";
  for (int i = 0; i < lines.length; i++) {
    if (lines[i].contains("--defaultOffset")) {
      defaultOffsetHelp = String.join("\n", Arrays.copyOfRange(lines, i, i + 4));
    }
  }
  assertThat(defaultOffsetHelp, containsString(DefaultOffset.LATEST.name()));
  assertThat(defaultOffsetHelp, containsString(DefaultOffset.EARLIEST.name()));
  assertThat(defaultOffsetHelp, containsString(String.format("(default: %s)", DefaultOffset.LATEST.name())));
}