@Test
public void listVersionsUsesDefaults() throws Exception {

  listVersionsActionConfig.name = secretV2.getDisplayName();
  when(keywhizClient.getSanitizedSecretByName(secretV2.getDisplayName())).thenReturn(
      sanitizedSecretV2);
  when(keywhizClient.listSecretVersions(eq(secretV2.getName()), anyInt(), anyInt())).thenReturn(
      secretVersions);
  listVersionsAction.run();
  verify(keywhizClient).listSecretVersions(secretV2.getName(), 0, 10);
  verify(printing).printSecretVersions(secretVersions, Optional.of(1L));
}