7. 7 Unit Test 対象のBeanを取り出してテストを行う(DIコンテナ使わない) Bean Bean テスト対象 Mock Mock @RunWith(JUnitMockitoRunner.class) public class ArticleManagerTest extends SampleBaseTestCase { @Mock private ArticleCalculator calculator; @Mock(name = "database") private ArticleDatabase dbMock; @Spy private UserProvider userProvider = new ConsumerUserProvider(); @InjectMocks private ArticleManager manager; @Test public voi