この呼び出しをモックする方法を教えてもらえますか?
実際のコード
final ServicesLocal servicesBean = new WSDelegate().getServiceLocal();
ここに私のモックコードがあります
mockDelegate = mock(PortalDelegate.class);
PowerMockito.whenNew(PortalDelegate.class).withAnyArguments().thenReturn(mockPortalDelegate);