public Errors get(String group) throws IllegalArgumentException {
        DeletableGroupResult result = data.results().find(group);
        if (result == null) {
            throw new IllegalArgumentException("could not find group " + group + " in the delete group response");
        }
        return Errors.forCode(result.errorCode());
    }
@Test
    public void testGetErrorWithInvalidGroupId() {
        assertThrows(IllegalArgumentException.class, () -> DELETE_GROUPS_RESPONSE.get("invalid-group-id"));
    }