MultiMasterDelayActionController extends CurrentDcCheckController implements DelayActionController, BiDirectionSupport { public boolean shouldCheck(RedisHealthCheckInstance instance) { return super.shouldCheck(instance) || instance.getRedisInstanceInfo().isMaster(); }  boolean shouldCheck(RedisHealthCheckInstance instance);  }
@Test public void testShouldCheck() { Assert.assertTrue(controller.shouldCheck(mockInstance(currentDc, true))); Assert.assertTrue(controller.shouldCheck(mockInstance(currentDc, false))); Assert.assertTrue(controller.shouldCheck(mockInstance(remoteDc, true))); Assert.assertFalse(controller.shouldCheck(mockInstance(remoteDc, false))); }