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

        osSecurityGroupStore.updateSecurityGroup(sg);
    }
@Test(expected = IllegalArgumentException.class)
    public void testUpdateUnregisteredSecurityGroup() {
        target.updateSecurityGroup(securityGroup1);
    }