verify(client, secClient, zoneClient, zone, group);
}
@Test(expectedExceptions = IllegalArgumentException.class)
public void testApplyZoneNoSecurityGroups() throws UnknownHostException {
final CloudStackApi client = createMock(CloudStackApi.class);
SecurityGroupApi secClient = createMock(SecurityGroupApi.class);
ZoneApi zoneClient = createMock(ZoneApi.class);
AsyncJobApi jobClient = createMock(AsyncJobApi.class);
SecurityGroup group = createMock(SecurityGroup.class);
Zone zone = createMock(Zone.class);
expect(zone.isSecurityGroupsEnabled()).andReturn(false);
expect(client.getZoneApi()).andReturn(zoneClient);
expect(zoneClient.getZone("zone-abc3")).andReturn(zone);
replay(client, zoneClient, zone);