์ฌ์ค private Method๊ฐ test๊ฐ ๋์ง ์์ ์ด์ ๋ ๊ธฐ๋ณธ์ ์ผ๋ก ํ ์คํธํ ํ์๊ฐ ์๊ฒ๋ ๊ตฌํํ๋ผ๋ ์๋๊ฐ ๊น๋ ค ์๋ค๊ณ ์๊ฐํฉ๋๋ค. ํ์ง๋ง ๊ฐ๋ private Method๋ฅผ ํ ์คํธ ํด์ผํ ๋๊ฐ ์กด์ฌํฉ๋๋ค. ์ ๊ฐ์ ๊ฒฝ์ฐ ์ค๊ฐ์ ์ธ์์ธ๊ณ๋ฐ์ ์์ ์ด ์กด์ฌํ๋๋ฐ spec์ด ๋ณ๊ฒฝ๋๋ฉด์ ํด๋น Method๋ง์ ํ ์คํธ ํด์ผ ํ๋ ์ํฉ์ด ์กด์ฌํ์ต๋๋ค. ๊ฒ์ํ๊ณ ๋๋ฆ์ ๋ฐฉ๋ฒ์ ์ฐพ์ ํ ํด๋น ๋ฐฉ๋ฒ์ ๋ํด ์ ๋ฆฌํด ๋ณด๊ฒ ์ต๋๋ค. Method์ ReflectionTestUtils ํ ์คํธ ๋ฐฉ๋ฒ์๋ ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ๋ฒ์ด ์์ง๋ง ์ฌ๊ธฐ์๋ ๋๊ฐ์ง ๋ฐฉ๋ฒ์ ๋ค๋ค๋ณด๊ฒ ์ต๋๋ค. java.lang.reflect.Method org.springframework.test.util.ReflectionTestUtils TestCode ์๋์ ๊ฐ์ด Pr..