public DeploymentPlanningManager deploymentPlanningManager() {
return Mockito.mock(DeploymentPlanningManager.class);
}
@Bean
public DomainChecker domainChecker() {
DomainChecker mock = Mockito.mock(DomainChecker.class);
try {
Mockito.when(mock.checkAccess(Mockito.any(Account.class), Mockito.any(DataCenter.class))).thenReturn(true);
} catch (Exception e) {
e.printStackTrace();
}
return mock;
}