public void checkExistsName(final String name) {
        if (baseballTeamRepository.existsByNameIn(List.of(name))) {
            throw new DuplicateTeamNameException();
        }
    }
@Test
    void 이미_존재하는_이름의_구단을_중복_저장할_수_없다() {
        // given
        String duplicateName = "두산 베어스";

        // when
        // then
        assertThatThrownBy(() -> createBaseballTeamService.checkExistsName(duplicateName))
                .isInstanceOf(DuplicateTeamNameException.class);
    }