@Override
    public void createSecurityGroup(SecurityGroup sg) {
        checkNotNull(sg, ERR_NULL_SG);
        checkArgument(!Strings.isNullOrEmpty(sg.getId()), ERR_NULL_SG_ID);

        osSecurityGroupStore.createSecurityGroup(sg);
        log.info(String.format(MSG_SG, sg.getId(), MSG_CREATED));
    }
@Test(expected = IllegalArgumentException.class)
    public void testCreateDuplicateSecurityGroup() {
        target.createSecurityGroup(securityGroup1);
        target.createSecurityGroup(securityGroup1);
    }