@Test
public void testZonesCommandPrintsZones() throws Exception {

    final ZonesCommand zonesCommand = new ZonesCommand(defaultProviderConfig);
    final ZoneClient zoneClient = mock(ZoneClient.class);
    when(client.getZoneClient()).thenReturn(zoneClient);
    when(zoneClient.listZones()).thenReturn(zones);
    zonesCommand.doExecuteWithContext(client, out);
    out.close();
    final String result = byteArrayOutputStream.toString();
    assertThat(result)
        .contains("zone-1")
        .contains("zone-one")
        .contains("false");
}