.build());
@Test
public void testTemplatesCommandPrintsTheTemplates() throws Exception {
final TemplatesCommand templatesCommand = new TemplatesCommand(defaultProviderConfig);
final TemplateClient templateClient = mock(TemplateClient.class);
when(client.getTemplateClient()).thenReturn(templateClient);
when(templateClient.listTemplates()).thenReturn(templates);
templatesCommand.doExecuteWithContext(client, out);
out.close();
assertThat(byteArrayOutputStream.toString()).contains("template-1").contains("template-one");
}