@Test
public void testGivenAzWithCompulsoryTags() {

  //  availabilityZoneStepDefinitions.setExecutionStateCache(executionStateCache);
    List<Tag> tags = new ArrayList<>();
    Tag tag = new Tag();
    tag.setKey("testkey");
    tag.setValue("testvalue");
    tags.add(tag);
    List<Tag> ignoreTags = new ArrayList<>();
    tag = new Tag();
    tag.setKey("ignorekey");
    tag.setValue("ignorevalue");
    ignoreTags.add(tag);
    PowerMockito.when(ec2Raider.getEc2InstanceIdsWithCompulsoryTagsForAvailabilityZone("us-west-2a", ignoreTags, tags)).thenReturn(emptyList());
    PowerMockito.when(ec2Raider.getEc2InstanceIdsWithCompulsoryTagsForAvailabilityZone("us-west-2b", ignoreTags, tags)).thenReturn(createSpecificInstance1());
    availabilityZoneStepDefinitions.givenAzWithCompulsoryTags("us-west-2a, us-west-2b", "testkey:testvalue", "ignorekey:ignorevalue");
    Assert.assertEquals(1, executionStateCache.getInstances().size());
}