@Test
public void listCallsErrorsCorrectly() throws Exception {

  listActionConfig.listType = Arrays.asList("secrets");
  listActionConfig.idx = 5;
  boolean error = false;
  try {
    listAction.run();
  } catch (AssertionError e) {
    error = true;
  }
  assert(error);
  listActionConfig.listType = Arrays.asList("secrets");
  listActionConfig.idx = 5;
  listActionConfig.num = -5;
  error = false;
  try {
    listAction.run();
  } catch (IllegalArgumentException e) {
    error = true;
  }
  assert(error);
}