public int countScimGroups(DbSession dbSession, ScimGroupQuery query) {
    return mapper(dbSession).countScimGroups(query);
  }
@Test
  void countScimGroups_whenFilteringByDisplayName_shouldReturnCorrectCount() {
    insertGroupAndScimGroup("group1");
    insertGroupAndScimGroup("group2");
    ScimGroupQuery query = ScimGroupQuery.fromScimFilter(DISPLAY_NAME_FILTER);

    int groupCount = scimGroupDao.countScimGroups(db.getSession(), query);

    assertThat(groupCount).isEqualTo(1);
  }