diff --git a/components/org.wso2.carbon.identity.organization.management.application/src/test/java/org/wso2/carbon/identity/organization/management/application/listener/FragmentApplicationMgtListenerTest.java b/components/org.wso2.carbon.identity.organization.management.application/src/test/java/org/wso2/carbon/identity/organization/management/application/listener/FragmentApplicationMgtListenerTest.java index 0ad122eb6..0daa89994 100644 --- a/components/org.wso2.carbon.identity.organization.management.application/src/test/java/org/wso2/carbon/identity/organization/management/application/listener/FragmentApplicationMgtListenerTest.java +++ b/components/org.wso2.carbon.identity.organization.management.application/src/test/java/org/wso2/carbon/identity/organization/management/application/listener/FragmentApplicationMgtListenerTest.java @@ -69,7 +69,6 @@ public void setUp() { MockitoAnnotations.openMocks(this); serviceProvider = mock(ServiceProvider.class); OrgApplicationMgtDataHolder.getInstance().setOrganizationManager(organizationManager); - mockedUtilities = Mockito.mockStatic(IdentityTenantUtil.class, Mockito.withSettings() .defaultAnswer(Mockito.CALLS_REAL_METHODS)); } @@ -127,7 +126,6 @@ public void testCreateApplicationInPrimaryOrg() public void testInheritDiscoverabilityProperty() throws Exception { ServiceProvider mainApplication = mock(ServiceProvider.class); - when(mainApplication.isDiscoverable()).thenReturn(true); when(serviceProvider.isDiscoverable()).thenReturn(false); Method method = fragmentApplicationMgtListener.getClass()