@Override
    public Boolean login(Properties properties) {
        if (ramContext.validate()) {
            return true;
        }
        loadRoleName(properties);
        loadAccessKey(properties);
        loadSecretKey(properties);
        loadRegionId(properties);
        return true;
    }
@Test
    void testLoginWithAkSk() {
        assertTrue(ramClientAuthService.login(akSkProperties));
        assertEquals(PropertyKeyConst.ACCESS_KEY, ramContext.getAccessKey());
        assertEquals(PropertyKeyConst.SECRET_KEY, ramContext.getSecretKey());
        assertNull(ramContext.getRamRoleName());
        assertTrue(ramClientAuthService.login(roleProperties));
        assertEquals(PropertyKeyConst.ACCESS_KEY, ramContext.getAccessKey());
        assertEquals(PropertyKeyConst.SECRET_KEY, ramContext.getSecretKey());
        assertNull(ramContext.getRamRoleName());
    }