Route53RaiderImpl implements Route53Raider { @Override public void updateHealthCheckToDefaultRegions(String healthCheckId) { List<String> defaultRegions = Arrays.asList("sa-east-1", "us-west-1", "us-west-2", "ap-northeast-1", "ap-southeast-1", "eu-west-1", "us-east-1", "ap-southeast-2"); this.updateHealthCheckRegions(healthCheckId, defaultRegions); } Route53RaiderImpl(); @Override List<HealthCheck> listHealthCheckers(); @Override List<HealthCheckObservation> getHealthCheckerStatus(String healthCheckerId); @Override HealthCheckStatus getSimpleHealthCheckerStatus(String healthCheckerId); @Override void updateTrafficPolicy(String trafficPolicyName, int version); @Override int getTrafficPolicyVersion(String trafficPolicyName); String getR53PolicyId(String policyId); @Override void updateHealthCheckRegions(String healthCheckId, List<String> regions); @Override List<String> getHealthCheckRegions(String healthCheckId); @Override void updateHealthCheckToDefaultRegions(String healthCheckId);  }
@Test public void testUpdateHealthCheckToDefaultRegions() { UpdateHealthCheckResult updateHealthCheckResult = PowerMockito.mock(UpdateHealthCheckResult.class); Mockito.when(mockAmazonRoute53.updateHealthCheck(Mockito.any())).thenReturn(updateHealthCheckResult); route53RaiderUnderTest.updateHealthCheckToDefaultRegions(SW2_R53_HEALTH_CHECK_ID); }