public int countScimGroups(DbSession dbSession, ScimGroupQuery query) {
    return mapper(dbSession).countScimGroups(query);
  }
@Test
  void countScimGroups_shouldReturnTheTotalNumberOfScimGroups() {
    int totalScimGroups = 15;
    generateScimGroups(totalScimGroups);

    assertThat(scimGroupDao.countScimGroups(db.getSession(), ScimGroupQuery.ALL)).isEqualTo(totalScimGroups);
  }